+ 1
Could anybody make me understand why this code is answering 72? |
var a = '7'; var b = '9'; alert(a + b % 7);
2 Réponses
+ 5
Dinesh Pal :) , first is modulo division 9%7=>2. Then string concatenation "7" + 2 => "72".
+ 2
Thanks Bro :-)
var a = '7'; var b = '9'; alert(a + b % 7);