├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Bogdan Stashchuk (bstashchuk@gmail.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JavaScript-and-ES6-Challenges 2 | 3 | 4 | Step-by-step guide to clone and use repository: 5 | 6 | 1. `git clone https://github.com/bstashchuk/JavaScript-and-ES6-Challenges` 7 | 8 | 2. `cd JavaScript-and-ES6-Challenges` 9 | 10 | 3. Each Challenge has two branches **start** and **finish**. 11 | 12 | In order to start with specific challenge checkout corresponding **start** branch like 13 | 14 | `git checkout CHALLENGE-1/sum-numbers/start` 15 | 16 | Solution for each challenge is available in the **finish** branches like 17 | 18 | `git checkout CHALLENGE-1/sum-numbers/finish` 19 | 20 | 4. Open directory in the favorite IDE. I suggest Visual Studio Code or Atom 21 | 22 | 23 | List of all challenges: 24 | 25 | - Challenge 1 - Sum numbers 26 | - Challenge 2 - Const 27 | - Challenge 3 - Let 28 | - Challenge 4 - Hoisting 29 | - Challenge 5 - Ternary Operator 30 | - Challenge 6 - Arrow Functions 31 | - Challenge 7 - Default parameters 32 | - Challenge 8 - Check presence of the function parameters 33 | - Challenge 9 - Object Destructuring 34 | - Challenge 10 - Destructuring and Rest Operator 35 | - Challenge 11 - Spread Operator 36 | - Challenge 12 - Copy Array 37 | - Challenge 13 - Template Literals 38 | - Challenge 14 - Object Destructuring 39 | - Challenge 15 - Iterate over String 40 | - Challenge 16 - Swap values of the two variables 41 | - Challenge 17 - IIFE (Immediately Invoked Function Expression) 42 | - Challenge 18 - Classes 43 | - Challenge 19 - Iterate over Object 44 | - Challenge 20 - Sum of positive and negative numbers 45 | --------------------------------------------------------------------------------