Nearby lessons

8 of 40

🔹 Arithmetic Operators

📌 What are Arithmetic Operators?

Perform mathematical operations on numbers and variables.

Includes basic arithmetic and increment/decrement operations.

🔢 Available Operators

AttributeDescription
+Addition (e.g., a + b)
-Subtraction (e.g., a - b)
*Multiplication (e.g., a * b)
/Division (e.g., a / b)
%Modulus (remainder) (e.g., a % b)
**Exponentiation (e.g., a ** b)
++Increment (e.g., a++)
--Decrement (e.g., a--)

💻 Example Usage

Code Example
PREVIEW READY
Loading Editor...
Live Preview
Keep Going!JS - Assignment Operators