I am going through codeacademys JavaScript tutorials as i am new to it. The tutorial asks for the following:
Print out the numbers from 1 - 20.
The rules:
You should check if a number is divisible by both 3 and 5 in your first IF, since numbers that are divisible by both would otherwise result in the first and the second IF statement being executed.
Furthermore, the rules tell you to write out "FizzBuzz" in case a number is divisible by both, and at the moment you're only printing out "Buzz".