Title says it all, but i cant understand Modulo operator with % i tried a lot and could not get this equation right (10+22)%3
here is what i tried:
100 % 7 = 2
// a = 100, n = 7
100 - (7 * floor(100/7)) = 2
VM393:1 Uncaught SyntaxError: Invalid left-hand side in assignment
console.log(10+22)%3
VM399:1 32
NaN
console.log(4+5)*2
VM417:1 9
NaN
console.log(5 / 5 )
VM461:1 1
undefined
console.log(5 / 2 )
VM473:1 2.5
undefined
console.log(9 / 4 )
VM503:1 2.25
undefined
console.log(10 + 22 )
VM574:1 32
undefined
console.log(10 + 22 )%3
VM599:1 32
Thanks…