Modern JavaScript ES6+ | MCQs & Concepts module 07

1. What does ES6 stand for?





2. Which symbol is used for template strings in JavaScript?





3. What is the correct way to insert a variable in a template string?





4. What does the spread operator (...) do?





5. Which symbol is used for both spread and rest operators?





6. What is the rest operator mainly used for?





7. What is destructuring used for?





8. Which is a correct array destructuring example?

let [a, b] = [1, 2];





9. Which keyword is used to export code from a module?





10. Which keyword is used to import code from another module?





11. What is the main benefit of using JavaScript modules?





12. Which keyword is used to create a class in JavaScript?





13. Which method runs automatically when a class object is created?





14. Which OOP concept allows one class to inherit another class?





15. ES6 features are mainly used to:





Wait for 20 seconds...

Post a Comment

Previous Post Next Post