- JS Tutor
- Prep exercises
- Practice the concepts
Practice, practice, practice. This week you are not handing in any homework, but are going to practice as much javascript as you can. Play around with the exercises mentioned below, remember that you can copy the code into JS Tutor to step through the code. Or look at it in the debugger in the browser/vscode.
Prep exercises are exercises that you should work on before the session on Sunday. These are a little more difficult or show an important concept and as such are a great exercise to talk about with your class and your Q&A mentor. Have a solution ready by Sunday as you may be asked to show what you did.
Inside your JavaScript fork, go to the folder Week1. Inside of that folder, navigate to /prep-exercises. For each exercise, you will find a separate folder. The README explains what needs to be done. There will also be some questions at the bottom to think about. Go through them before the session on Sunday as it will be covered then.
Before we learn how to build actual applications, we first need to gain experience using JavaScript in a computational way. This teaches us how to think like a programmer, and gives us more experience with the language itself.
In the following exercises you'll learn how to use different JavaScript concepts to solve common computational problems.
- Learn-js. Do all the
Learn the basicsexercises. - Codecademy: Introduction to JavaScript. Do all the exercises (#1 to #10).
- jshero.net. Do the first 5 exercises.
The above should give you a nice basis. If you have extra time and are still a little unsure, have a look at the following:
- FreeCodeCamp: Introduction to JavaScript. Do at least 20 exercises, you can choose whichever ones you feel are challenging enough.
- There is a practice-exercises folder in this week's repository that is filled with exercises to try out. The solutions are in a separate folder so you can check if you did it correctly. Clone this repository to your computer and have a go!
For the first 2 weeks of JavaScript there is no homework to hand in as the exercises already give you all the feedback you need. Go through the first 3 weeks at your own pace, and feel free to ask questions about any of the 3 weeks for the Q&A sessions.
Try to do more exercises in the links above. The first weeks of the JavaScript modules are very important as understanding the basics will make the rest of the curriculum that much easier to follow. So keep reading and writing code! If you are done early, go on to week 2!