JavaScript Quiz - Level 4

1. What is the prototype chain used for in JavaScript?

2. What is the output of: console.log([] == ![])

3. Which statement about the event loop is correct?

4. What is the purpose of the Symbol type in JavaScript?

5. How can you make an object iterable?

6. What will this output? console.log(Promise.resolve(5).then(console.log));

7. What does the "super" keyword do in a JavaScript class?

8. What will this output? console.log([..."hello"]);

9. What is a generator function?