Step-by-step guide to clone and use repository:
-
git clone https://github.com/bstashchuk/JavaScript-and-ES6-Challenges
-
cd JavaScript-and-ES6-Challenges
-
Run
npm install -g lite-server
-
Each Challenge has two branches start and finish.
In order to start with specific challenge checkout corresponding start branch like
git checkout CHALLENGE-1/sum-numbers/start
Run lite-server
. Your browser will open at localhost:3000
and if you open the JS console in the browser you'll see the output from the current challenge.
- Open directory in the favorite IDE. As you change your code, the browser output will update.
If you don't know how to solve the challenge, google the topic. You will learn a lot unless you are a JS pro already :)
Once you're satisfied, you can check the solution.
- Solution for each challenge is available in the finish branches like
git checkout CHALLENGE-1/sum-numbers/finish
- There is discussion of the solutions from the author at https://www.oreilly.com/library/view/javascript-and-es6/9781789955606/ (get Prodigy to pay for your ACM membership to discuss this content)
List of all challenges:
- Challenge 1 - Sum numbers
- Challenge 2 - Const
- Challenge 3 - Let
- Challenge 4 - Hoisting
- Challenge 5 - Ternary Operator
- Challenge 6 - Arrow Functions
- Challenge 7 - Default parameters
- Challenge 8 - Check presence of the function parameters
- Challenge 9 - Object Destructuring
- Challenge 10 - Destructuring and Rest Operator
- Challenge 11 - Spread Operator
- Challenge 12 - Copy Array
- Challenge 13 - Template Literals
- Challenge 14 - Object Destructuring
- Challenge 15 - Iterate over String
- Challenge 16 - Swap values of the two variables
- Challenge 17 - IIFE (Immediately Invoked Function Expression)
- Challenge 18 - Classes
- Challenge 19 - Iterate over Object
- Challenge 20 - Sum of positive and negative numbers