Homework Week 2
Introduction
We learned a lot of new material this week, as you got your first look into the world of JavaScript.
For this week’s homework, we’re focusing entirely on getting some experience at putting this new syntax into practice, so we just have a range of freeCodeCamp exercises that you should complete.
If you want to have a go at the bonus homework, then this week, you’ll be writing a few functions on your local machine to solve some problems!
Assignment
1) freeCodeCamp exercises | 1 hour
Once again, we have some exercises from freeCodeCamp to give you some practice at using JavaScript yourself.
- Comment your code
- Declare JavaScript variables
- Assigning variables
- Reassigning variables
- Initializing variables
- Add two numbers with JavaScript
- Divide one number by another with JavaScript
- Increment a number with JavaScript
- Declaring string variables
- Concatenating strings with the + operator
- Concatenating strings with the += operator
- Write reusable JavaScript with functions
- Passing values to function with arguments
- Global scope and functions
- Local scope and functions
- Return a value from a function with return
- Understanding undefined return value from a function
- Assignment with a returned value
2) Week 2 Feedback | 2 mins
Fill out the form for this week’s feedback form here. This will include some standard feedback that you’ll be asked every time, as well as some specific questions for this week.
This will be helpful for me to tweak the course as we go along, and will help me to flag any topics which were confusing, which I should revisit in future lectures.