+++++++++ modulo ++ FizzBuzz ++++++++++++++++ Javascript has the so-called Remainder-operator % is actually a modulo-operator and if used it will return the rest-value.

9%3 You read it as nine modulo three is zero, as 9 divided by 3 has NO rest-value. 22%6 You read 22 modulo six is 4, as 22 divided by 6 will leave you with rest-value 4 10%5 You read 10 nodulo five is zero, as 10 divided by 5 will have NO rest-value

In this section you have to figure out (i%3 === 0 && i%5 === 0) to display FizzBuzz // if (imodulo 3 equals zero AND imodulo 5 equals zero) (i%3 === 0) to display Fizz // else if (i modulo 3 equals zero ) (i%5 === 0) to display Buzz // else if (i modulo 5 equals zero ) AND if none of the above displayi //else display i

You will have to use an IF ELSE-IF ELSE-IF ELSE-statement within a for-loop.

Lets go back to principle first, IF statement cares about the value TRUE or FALSE (in sense, if condition is TRUE, execute the code, if FALSE, skip, or if available, go to ELSE code)

if (i % 3 === 0 && i % 5 === 0) {

This is recommended because basically it is (condition1 && condition2) and each condition will result in TRUE or FALSE, and so, it is clear what will be final result: TRUE/FALSE. i % 3 === 0 simply wants to check if i is divisible by 3.

meanwhile

if (i % 3 || i % 5) {

will be wild, since it is basically (condition1 && condition2) but each condition is mathematical calculation that will result in any number, can be 0 (considered FALSE) but there will be many chances that this is NOT 0 , and any number which is not 0 is considered TRUE. So you can see how wild the result will be.

In programming you generally like things to be under control. The easier the better.