JavaScript Arithmetic Operators

Offered By
Coursera Project Network
In this Guided Project, you will:

Describe the purpose of arithmetic operators in JavaScript.

Write JavaScript code to perform calculations.

Apply operator precedence in a JavaScript math statement.

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this intermediate-level project you will write JavaScript code to use arithmetic operators in calculations. Many programming applications require calculations to determine tax amounts, coordinates, and square footage, among others. Your ability to recognize and use the arithmetic operators correctly moves your JavaScript programming skills to the next level. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

ArithmeticOrder of PrecedenceJavaScript MathModulo OperationIncrement and Decrement

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Identify the components in a JavaScript arithmetic statement, including the assignment symbol, the operator, and the operands.

  2. Demonstrate addition and subtraction using JavaScript code with the addition and subtraction operators.

  3. Demonstrate multiplication and division using JavaScript code with the multiplication, division, and modulus operators.

  4. Write JavaScript code to increment or decrement the value in a variable using the increment or decrement operators.

  5. Practice writing compound arithmetic statements while applying operator precedence in JavaScript.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.