📚 › JavaScript: make pages do things
4. Operators
ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.
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.
عرض المثال
console.log(7 + 3);
console.log((2 + 3) * 4);
console.log(10 % 4);
✍️ دورك الآن
Print the result of 12 multiplied by 5.