📚 › JavaScript: make pages do things
4. Operators
Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.
Arithmetic uses + - * / and % (remainder). Comparison uses === for equal and !== for not equal, plus < and >. Use parentheses to choose which calculation happens first.
% helps check even or odd: n % 2 is 0 for even numbers.
Ver ejemplo
console.log(7 + 3);
console.log((2 + 3) * 4);
console.log(10 % 4);
✍️ Ahora te toca
Print the result of 12 multiplied by 5.