This is an overview of the JavaScript language to help new developers get up and running.
Content is splitted into small modules with suggestion time to complete the activy. Could be studied by day as individual, group and/or dojo.
- Variables
- Strings - Javascript.com; MDN
- Numbers - Javascript.com; MDN
- Booleans - Javascript.com; MDN
- Null
- Undefined
- Operators - Javascript.com; MDN
- Conditionals- Javascript.com; MDN
- Loops
- Objects - Javascript.com; MDN
- Arrays - Javascript.com; MDN
- Date
- Regular Expressions
- Online tool: regex101
- Functions - Javascript.com; MDN
We strongly recommend checking if your solutions are correct using the TDD paradigm.
For this, follow bellow instructions.
1. Make sure you have NodeJS >= 6 installed.
2. Clone this repo
3. cd JavaScript-fundamentals
4. npm install
Your solutions must be implemented on lib/module${n}.js
.
So for exercises of module1, you must edit lib/module1.js
.
In this file you'll see comments indicating where to implement your solution. You'll just export a function returning your answer.
To test a specific solution of yours you can do:
npm run `test${n}`
For instance, if you want to see how's your solution for module4, you should do:
npm run test4
- If the test fails it'll show on the console what's the spectation of solution, so you can fix it and the test runner will automatically check the solution again.
- If the current testing exercise succeded, it'll check the solution of the next exercise of the module.
- If you want to stop the test runner, just press ctrl+c.
To test ALL solutions from all modules:
npm test
If you want to check tests coverage:
npm run cover
To check if your code is attending to standards:
npm run lint
Obs: all commands using npm
can be run with yarn
.