1.
What keyword is used to declare a block-scoped variable in ES6?
2.
How do you declare a constant variable in ES6?
3.
What is the output of const x = 10; x = 20;?
4.
What is the syntax for an arrow function in ES6?
5.
How do you interpolate variables in a string using template literals?
6.
What does the ... operator do when used in a function parameter?
7.
What is the result of [...['a', 'b', 'c']]?
8.
How do you define a default parameter in a function?
9.
What is the output of const [a, b] = [1, 2];?
10.
How can you create a new promise in ES6?