Introductory exercises on working with Javascript:
- Deploying a local server to have a more convenient acces to the exercises
- Learning how to make content interactive
- Making first small applications
- Manipulating DOM elements upon user input
- Working with arrays, objects, dates
- Using fetch API
Welcome to the JavaScript folder.
The file consists of several exercises, divided into 8 series. Don't be afraid of the large amount of exercises: most of these exercises are very short and focus on a particular aspect. The exercises follow one another in a logical relatively way, but don't let one exercise stop you: go to the next, come back to it later.
Some exercises are marked as optional, feel free to continue with the next chapter and come back to those exercises later.
Some exercises may require running the code on a local server.
This is a good practice that should always be applied. Maybe, you have already install node.js and npm on your machines. If not, do it ;).
If you want to configure correctly the global settigs of npm follow this article.
We prepared for you a local server to use from your command line called sèvè.
Then, use your terminal to navigate to your repo and run the following commands :
npm install
npm start
If everything ir right, your default's browser will be opened on the address localhost:8000.
For the fetch exercises, you are going to need to query a REST API. We have provided you with a small script to run this API locally.
Open a second terminal, then navigate to the repo folder. Then issue the following commands :
npm run api
From there, you will have a REST API available at http://localhost:3000
To get the most out of these exercises, some useful resources:
- Silent Teacher - learn and have fun
- Solo Learn - Javascript 🇬🇧
- Sabe - Javascript 🇬🇧
- Mozilla Javascript Guide 🇬🇧 🇫🇷
- jsfiddle - to test your js codes
- learn x in y minutes
- learn js
- 10 js array methods
Good work!
