bristolkr / assignments

TIY homework, mostly basic Ruby files from first week
0 stars 0 forks source link

Assignment 3-2 #13

Closed ambethia closed 9 years ago

ambethia commented 9 years ago

Week 3 - Assignment 2

Description

This assignment serves to reinforce JS syntax, functions, and some mathematical operators and sequences.

After completing this assignment, you should:

Instead of using the browser and the Chrome Dev Tools console to look at your JS output, use node functions_1.js to print the output to your terminal.

Bonus

Write a function in another javascript file (fizzbuzz.js) that prints the numbers from 1 to 100. But for multiples of three print Fizz instead of the number and for the multiples of five print Buzz. For numbers which are multiples of both three and five print FizzBuzz.

Turn this in as a gist as well.

Hint: Research the % (modulo) operator.

Resources

bristolkr commented 9 years ago

https://gist.github.com/cateia97/fddf59c903738b2aca19

bristolkr commented 9 years ago

and the bonus https://gist.github.com/cateia97/1e67d0a92a62fdf07f76

ambethia commented 9 years ago

Fantastic!