O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JavaScript and ES6 Challenges - Do you know JavaScript?

Video Description

Solve different JavaScript challenges yourself—destructuring, hoisting, IIFEs, closures, classes, let, and much more

About This Video

  • Puzzles are cool, and solving tasks will help you feel more confident with the ES6 features!

In Detail

In this course, you will get JavaScript challenges that you need to solve. Each challenge consists of the task and solution. In some cases, you will be asked to fix existing code; in other cases, you will need to write some additional code. The instructor will explain each line of the solution and you will deeply understand what happens behind the scenes. Topics of the challenges include the following:

  • Destructuring
  • Array helper methods
  • Variables hoisting
  • Let, var, and const
  • Rest and spread operators
  • The ternary operator
  • Default parameters
  • Closures
  • IIFEs (Immediately Invoked Function Expressions)
  • Classes

At the beginning of the course, you will get source files for all challenges. They include start and finish states for each challenge. You need to begin with "start" folder for each challenge.

Table of Contents

  1. Chapter 1 : Introduction
    1. Software Setup 00:05:26
  2. Chapter 2 : Challenges
    1. Challenge 1 - Sum numbers 00:00:58
    2. Challenge 1 - Sum numbers – SOLUTION 00:04:51
    3. Challenge 2 – Const 00:00:15
    4. Challenge 2 - Const – SOLUTION 00:03:46
    5. Challenge 3 – Let 00:00:13
    6. Challenge 3 - Let – SOLUTION 00:02:41
    7. Challenge 4 – Hoisting 00:00:42
    8. Challenge 4 - Hoisting – SOLUTION 00:03:16
    9. Challenge 5 - Ternary Operator 00:00:32
    10. Challenge 5 - Ternary Operator – SOLUTION 00:03:14
    11. Challenge 6 - Arrow Functions 00:00:32
    12. Challenge 6 - Arrow Functions – SOLUTION 00:04:04
    13. Challenge 7 - Default parameters 00:00:30
    14. Challenge 7 - Default parameters – SOLUTION 00:04:47
    15. Challenge 8 - Check presence of the function parameters 00:00:45
    16. Challenge 8 - Check presence of the function parameters – SOLUTION 00:02:43
    17. Challenge 9 - Object Destructuring 00:00:29
    18. Challenge 9 - Object Destructuring – SOLUTION 00:02:41
    19. Challenge 10 - Destructuring and Rest Operator 00:00:21
    20. Challenge 10 - Destructuring and Rest Operator – SOLUTION 00:02:33
    21. Challenge 11 - Spread Operator 00:00:24
    22. Challenge 11 - Spread Operator – SOLUTION 00:02:02
    23. Challenge 12 - Copy Array 00:00:23
    24. Challenge 12 - Copy Array – SOLUTION 00:04:26
    25. Challenge 13 - Template Literals 00:00:48
    26. Challenge 13 - Template Literals – SOLUTION 00:04:19
    27. Challenge 14 - Object Destructuring 00:01:20
    28. Challenge 14 - Object Destructuring – SOLUTION 00:04:31
    29. Challenge 15 - Iterate over String 00:00:29
    30. Challenge 15 - Iterate over String – SOLUTION 00:09:57
    31. Challenge 16 - Swap values of the two variables 00:00:31
    32. Challenge 16 - Swap values of the two variables – SOLUTION 00:01:01
    33. Challenge 17 - IIFE (Immediately Invoked Function Expression) 00:01:16
    34. Challenge 17 - IIFE (Immediately Invoked Function Expression) – SOLUTION 00:11:09
    35. Challenge 18 – Classes 00:00:23
    36. Challenge 18 - Classes – SOLUTION 00:10:58
    37. Challenge 19 - Iterate over Object 00:00:28
    38. Challenge 19 - Iterate over Object – SOLUTION 00:07:40
    39. Challenge 20 - Sum positive and negative numbers 00:00:27
    40. Challenge 20 - Sum positive and negative numbers – SOLUTION 00:05:08