These questions are designed to help prepare you for the 305 Midterm. Once you feel familiar with the JavaScript topics, try taking these without using notes for practice.
Use loops rather than relying on built-in JS functions such as reverse() or filter() for the following questions. In a real interview this restriction may or may not apply, but it’s good practice!
For multiples of 3, print “Fizz” instead of the number.
For multiples of 5, print “Buzz”.
For numbers which are multiples of both 3 and 5, print “FizzBuzz”.