+ 1
What this operator does
%<-- what this operator does?
2 odpowiedzi
+ 8
It returns the remainder.. the "modulus operator"
var a = 8%7; //8 divided by 7
alert(a); //ouput 1
+ 4
Here's an additional.
If the second value is higher, it will return the first value..
var a = 1%8; //returns 1
var b = 5%9; //returns 5
alert(a + b); //output: 6