Javascript Program to Check if a Number is Odd or Even #viralvideo #codesecret #javascript

preview_player
Показать описание
#codesecret In the above program, number % 2 == 0 checks whether the number is even. If the remainder is 0, the number is even.

In this case, 27 % 2 equals to 1. Hence, the number is odd.
Рекомендации по теме