0
0
Javascriptprogramming~5 mins

Arithmetic operators in Javascript - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the + operator do in JavaScript when used with numbers?
It adds two numbers together to produce their sum.
Click to reveal answer
beginner
What is the result of 10 - 4 in JavaScript?
The result is 6, because the - operator subtracts the second number from the first.
Click to reveal answer
beginner
How does the * operator work in JavaScript?
It multiplies two numbers and returns the product.
Click to reveal answer
beginner
What does the / operator do?
It divides the first number by the second number and returns the quotient.
Click to reveal answer
beginner
What is the purpose of the % operator in JavaScript?
It returns the remainder after dividing the first number by the second number, also called the modulus.
Click to reveal answer
What is the result of 7 + 3 * 2 in JavaScript?
A20
B16
C10
D13
Which operator gives the remainder of a division?
A*
B-
C%
D+
What does 15 / 4 return in JavaScript?
A3
B3.75
C4
D3 remainder 3
What is the value of 5 % 2?
A1
B2
C0
D3
Which operator is used to multiply numbers?
A*
B-
C/
D+
Explain how the order of operations affects arithmetic expressions in JavaScript.
Think about which operations happen first when you see multiple operators.
You got /3 concepts.
    Describe the difference between the division operator / and the modulus operator %.
    One tells you how many times a number fits, the other tells you what's left over.
    You got /3 concepts.