Exercises

JavaScript ES6 Fundamentals

Strengthen your JavaScript ES6 knowledge with this fundamentals quiz. Answer questions covering concise object syntax, let variables, arrow functions, array mapping, destructuring, default parameters, Set collections, template literals, promise error handling, and generators. Whether you are learning modern JavaScript or reviewing core ECMAScript 2015 features, this quiz helps you check your understanding of the syntax and tools used in contemporary web development.

Answer the questions below and check the explanation for each answer.

0/10 answered

  1. 1

    What new syntax in ES6 allows for more concise feature initialization in objects?

  2. 2

    Which keyword is used to declare a variable that can be reassigned later?

  3. 3

    What is the output of the following code? <code>[1,2,3].map(x => x + 1)</code>

  4. 4

    Which feature is used to easily extract values from arrays or properties from objects?

  5. 5

    What is the main advantage of arrow functions in ES6?

  6. 6

    How do you declare a default parameter in an ES6 function?

  7. 7

    Which data structure allows unique values and prevents duplicates?

  8. 8

    How are template literals denoted in JavaScript?

  9. 9

    Which method is used with promises to handle errors?

  10. 10

    What feature in ES6 allows functions to pause and resume execution?

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate