4 6 3 order of operations c2 b6

Solutions on MaxInterview for 4 6 3 order of operations c2 b6 by the best coders in the world

showing results for - "4 6 3 order of operations c2 b6"
Isaac
14 Jan 2017
1/*Due to an historical quirk, an exception to the left-to-right rule 
2is the exponentiation operator **. A useful hint is to always use 
3parentheses to force exactly the order you want when exponentiation 
4is involved:*/
5
6// the right-most ** operator is applied first
7console.log(2 ** 3 ** 2)
8
9// use parentheses to force the order you want
10console.log((2 ** 3) ** 2)
11
12//512
13//64
similar questions
queries leading to this page
4 6 3 order of operations c2 b6