+ 2

What will be the final result

9%18

29th Apr 2017, 10:40 AM
Kristina Hakobyan
Kristina Hakobyan - avatar
4 Answers
+ 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.
29th Apr 2017, 10:42 AM
Billy Tsouvalas
+ 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😃
29th Apr 2017, 2:02 PM
seamiki
seamiki - avatar
+ 1
yes but it's true because I can understand when will be 18%9
29th Apr 2017, 10:49 AM
Kristina Hakobyan
Kristina Hakobyan - avatar
0
9%18=9 18%9=0
29th Apr 2017, 10:31 PM
MBZH31
MBZH31 - avatar