Skip to content

ES6+ Quiz (50 Questions)

Answer all questions, track your progress live, and see your final ES6+ quiz score at the end.

Progress 0 / 50 answered
Q1. What does ES6+ mainly refer to in modern JavaScript?
Q2. Which keyword creates a block-scoped variable that can be reassigned?
Q3. Which keyword creates a block-scoped variable that cannot be reassigned?
Q4. What is the main scope difference between var and let?
Q5. Which syntax creates an arrow function?
Q6. What is a key limitation of arrow functions?
Q7. Which syntax creates a template literal?
Q8. Which operator is used for optional chaining?
Q9. Which operator returns the right value only for null or undefined?
Q10. Which operator assigns only when the left value is nullish?
Q11. What does the spread operator do with an array?
Q12. What does a rest parameter do in a function?
Q13. Which destructuring syntax extracts object properties?
Q14. Which ES6 feature lets you define methods directly inside object literals?
Q15. Which method copies enumerable properties into a target object?
Q16. Which method returns an array of [key, value] pairs from an object?
Q17. Which keyword defines a JavaScript class?
Q18. Which method runs when a new class instance is created?
Q19. Which keyword creates inheritance between classes?
Q20. What must be called in a child class constructor before using this?
Q21. Which prefix marks a private class field in modern JavaScript?
Q22. Where are static methods defined?
Q23. Which syntax exports a value from an ES module?
Q24. Which attribute loads JavaScript as an ES module in the browser?
Q25. What are the three Promise states?
Q26. Which Promise method handles success?
Q27. What does Promise.all() do?
Q28. Which method waits for every Promise and reports all outcomes?
Q29. Which method resolves with the first fulfilled Promise?
Q30. Which keywords make async code look more like synchronous code?
Q31. What does an async function always return?
Q32. Which collection stores unique values only?
Q33. Which collection stores key-value pairs with any key type?
Q34. Which method checks whether an array contains a value?
Q35. Which array method returns a new array after transforming each item?
Q36. Which array method returns items that pass a test?
Q37. Which array method reduces an array to a single value?
Q38. Which method flattens nested arrays by one level by default?
Q39. What is a higher-order function?
Q40. Which data type creates unique primitive identifiers?
Q41. Which object intercepts operations like get and set?
Q42. Which object provides default methods matching Proxy traps?
Q43. Which type is used for very large integers?
Q44. How do you create a BigInt literal?
Q45. Which operator performs exponentiation?
Q46. Which feature allows await at the top level of a module?
Q47. Which function creates values over time using yield?
Q48. What does Babel mainly help with for modern JavaScript?
Q49. Which is the best default choice for variables in modern JavaScript?
Q50. Which practice helps you write safer modern JavaScript?