Operators & Expressions
JavaScript Fundamentals • 12 pts
Working with Operators
Operators let us perform operations on values. JavaScript has arithmetic operators (+, -, *, /), comparison operators (===, !==, <, >), and logical operators (&&, ||, !).
The === operator checks for strict equality (value AND type). Always use === instead of == to avoid unexpected behavior.
Output: — • expect 42
What does 10 % 3 return?
Select an answer
The modulo operator (%) gives you the remainder after division. Useful for checking if numbers are even/odd!