Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Modulus question in JavaScript
Why does 2%66 results in 2?
1 ответ
+ 4
Modulus operator gives the remainder of an integer division. In your case, 2/66 gives the quotient as 0 and remainder 2. So the answer is 2