The module challenge is the afternoon project or assignment that students work through independently. This expands on the guided project completed earlier with the instructor.
- use let, const, var and demonstrate their differences.
- understand and be able to use different operators.
- write a basic for loop / while loop.
- write control flow using if/else statements.
- use function declarations, expressions, and arrow functions and describe their differences
Today you'll worth through 7 JavaScript Tasks to practice today's objectives and get familiar and comfortable with the foundations of JavaScript.
Exercises are outlined in the index.js
file, please read the instructions carefully for each task and complete it. Note that you may have to use your googling skills to research and look things up if you do not have all the information you need to complete the task.
Using VSCode, Codegrade and Command Line:
- Fork the repo
- Go into canvas and connect your reop to codegrade
- Clone your forked version of the repo
- DO NOT CREATE A BRANCH. You will be pushing your changes to the main/master today
- cd into your repo
- open the terminal in your vs code and type
npm install
- next type
npm run test
in your terminal - Complete your work making regular commits to main/ master your codegrade score will update each time you make a push.
Find the index.js
file and complete the tasks as written.
Open a second terminal inside of your project by clicking on the split terminal icon
Inside of your second terminal type npm start
You will be running your tests in one terminal and debugging in the other. As you work on your code you should make use of console.log
to check your progress and debug.
After you have completed the requirements, try any of the following challenges. As always, note that these may require additional research beyond what you learned in this module.
- See tasks labelled stretch. Please ensure you've completed MVP before you attempt the stretch goals. Note that you may need to look forward to tomorrow's training kit in order to complete the task.
Please submit your project via codegrade by following these instructions See part 2, submitting an assignment with codegrade