filmov
tv
JavaScript Exercises | Hack Reactor Bootcamp Prep | Module 1 | 019_isOdd
![preview_player](https://i.ytimg.com/vi/VCTVCjckFLA/maxresdefault.jpg)
Показать описание
Hack Reactor's Module 1 Bootcamp Prep Exercises 018_isOdd
Exercise 19 of 145
In this video, I solve exercise 019 isOdd. An if/else statement is used to to test if the argument, a number, passed through the function parameter, is an even or odd number. The modulus operator is used to test if a number is divided by two, if the remainder is zero. If the number has a remainder of zero, it is even, else it is odd. A boolean value of true returns if number is odd.
To complete this exercise, one needs to use/having an understanding of:
-Functions
-Function arguments and parameters
-if/else statements
-boolean values: true, false
-strict comparison operator ===
-modulus operator
Connect with me:
Exercise 19 of 145
In this video, I solve exercise 019 isOdd. An if/else statement is used to to test if the argument, a number, passed through the function parameter, is an even or odd number. The modulus operator is used to test if a number is divided by two, if the remainder is zero. If the number has a remainder of zero, it is even, else it is odd. A boolean value of true returns if number is odd.
To complete this exercise, one needs to use/having an understanding of:
-Functions
-Function arguments and parameters
-if/else statements
-boolean values: true, false
-strict comparison operator ===
-modulus operator
Connect with me: