This assignment serves to reinforce JS syntax, functions, and some mathematical operators and sequences.
Objectives
Learning Objectives
After completing this assignment, you should:
Understand general JS syntax
Grasp why functions are important
Understand arrays and loops
Understand how to call functions from within functions
Be able to breakdown a simple process of mathematical steps into a series of statements in JS
Performance Objectives
After completing this assignment, you should be able to effectively use:
The terminal and node to test your JS
Details
Deliverables
A repo containing at least:
main.js
Requirements
No JSHint warnings or errors
All functions should be complete and produce the expected output
The last exercise asks for a JavaScript object, which we haven't covered yet.
You're welcome to try it, but it is not required.
Normal Mode
Create a new git and Github repo, download exercises-1.js, and move exercises-1.js into the repo you just created. Make your edits to the functions in the "exercises-1" file to create the correct output.
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.
js-functions-practice
Description
This assignment serves to reinforce JS syntax, functions, and some mathematical operators and sequences.
Objectives
Learning Objectives
After completing this assignment, you should:
Performance Objectives
After completing this assignment, you should be able to effectively use:
node
to test your JSDetails
Deliverables
main.js
Requirements
Normal Mode
Create a new git and Github repo, download exercises-1.js, and move exercises-1.js into the repo you just created. Make your edits to the functions in the "exercises-1" file to create the correct output.
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.