This assignment serves to reinforce JS syntax, functions, and some mathematical operators and sequences.
After completing this assignment, you should:
- Understand general JS syntax
- Grasp why functions are important
- Understand arrays and loops
- Be able to recite the meaning and importance of SOLID principles
- By able to breakdown a simple process of mathematical steps into a series of statements in JS
After completing this assignment, you should be able to effectively use:
- The terminal and
nodeto test your JS
- A repo containing at least:
main.js
- All functions should be complete and produce the expected output
Create a new Github repo and add exercises-1.js to it. Make your edits to the functions in that file.
Instead of using the browser and the Chrome Dev Tools console to look at your JS output, use node exercises-1.js to print the output to your terminal.
In addition to the easy mode, write a function in exercises-1 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”.