+ 1

javascrips operators

What is % really do? I am not understand it.

29th May 2018, 7:09 PM
Taha Ansari
Taha Ansari - avatar
3 ответов
+ 2
Is mod, In JSP is other use.
29th May 2018, 10:22 PM
Alan Carreño Fiestas
Alan Carreño Fiestas - avatar
+ 2
As Sachin Artani said you can check a division's remainder. It's often used for checking for divisibility, if the remainder is zero you know a number is divisible by another.
29th May 2018, 7:25 PM
Jonas Schröter
Jonas Schröter - avatar
+ 1
It's a modulo operator which is used to find out the remainder. eg. 7%2 is 1
29th May 2018, 7:20 PM
Sachin Artani
Sachin Artani - avatar