This assignment serves to reinforce JavaScript syntax, functions, and some mathematical operators and sequences.
After completing this assignment, you should:
- Understand general JavaScript syntax
- Grasp why functions are important
- Understand arrays and loops
- Be able to breakdown a simple process of mathematical steps into a series of statements in JavaScript
After completing this assignment, you should:
- Be able to demonstrate how to define a function with parameters and return the expected output
- Be able to effectively use console.assert
A repo containing at least:
- index.html
- scripts/exercises.js
- scripts/refactor.js
- All functions should be complete and produce the expected output
- Create a new repository
- Download starter files
- Link index.html to scripts/exercises.js and scripts/refactor.js
- Fill in the function so that the console.assert() statements don't throw errors