Javascript — Basic Operators
JavaScript supports these basic operators:
- Arithmetic:
+,-,*,/,% - Assignment:
=,+=,-= - Comparison:
==,===,!=,>,< - Logical:
&&,||,!
let x = 10;
let y = 5;
console.log(x + y); // 15
console.log(x > y); // true
console.log(x === 10 && y === 5); // true