+ 2
What will be the final result
9%18
4 odpowiedzi
+ 4
The remainder of the division of 9 by 18. The result is 9. 9 fits 0 times in 18 and leaves a remainder of 9.
Modulus (%) is the division remainder operator. In this case (9%18), it is used for integers. In JavaScript, the modulus operator is used not only on integers, but also on floating point numbers.
+ 3
Think of it as if you have 2 candies and 5 kids wanting candies.
you don't have enogh candies to make every kid happy.
Your reminder (%) will be the 2 HAPPY KIDS
2%5= 2
the reminder of 2🍬 %5😮 =2😃
+ 1
yes but it's true because I can understand when will be 18%9
0
9%18=9
18%9=0