Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Operator Precedence Values

console.log(3 + 10 * 2);   // logs 23
console.log(3 + (10 * 2)); // logs 23 because parentheses here are superfluous
console.log((3 + 10) * 2); // logs 26 because the parentheses change the order
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #JavaScript #Operator #Precedence #Values
ADD COMMENT
Topic
Name
2+7 =