The purpose of this exercise package is simple - to help you understand fundamental JavaScript concepts. Your goal is to make the tests pass in a TDD(Test-Driven-Development) fashion. 🎯
- Run
npm installto install dependencies. - Run
npm testto run the Jest tests andnpm run test:watchto run them inwatchmode. - Make all the test pass by completing the exercises for each topic.
At the end of the exercise all the test should pass:

Understand the basic data types in JavaScript. In your terminal run:
npm run test:watch 01_primitivesThe tests should fail like this:

Implement the following functions to make the tests pass:
Learn about the different scopes in JavaScript.
- Global Scope
- Function Scope
- Block Scope
Run the tests for this section:
npm run test:watch 02_scopeMake the tests pass by completing the code in 02_scope.
Get a grasp on how closures work.
- What are closures?
- Why are they useful?
Run the tests for this section:
npm run test:watch 03_closuresMake the tests pass by completing the code in 03_closures.
Dive into the JavaScript hoisting mechanism.
- What gets hoisted?
- What doesn't?
Run the tests for this section:
npm run test:watch 04_hoistingMake the tests pass by completing the code in 04_hoisting.
Practice the control flow statements in JavaScript.
whileloopforloop
Run the tests for this section:
npm run test:watch 05_logic_control_flowMake the tests pass by completing the code in 05_logic_control_flow.
Learn about the characteristics of objects.
- Properties
- Methods
- Object Equality
Run the tests for this section:
npm run test:watch 06_objectsMake the tests pass by completing the code in 06_objects.
Understand the different aspects of arrays.
- Creating Arrays
- Array Methods
- Multi-dimensional Arrays
Run the tests for this section:
npm run test:watch 07_arraysMake the tests pass by completing the code in 07_arrays.
If you have issues with the Action Item, you can ask for help in the Community.
Made with 🧡 in Berlin by @TheSeniorDev
