Question · Vibe coding with Claude Code course · Module 4: Instagram clone
Quiz: Closing with a Key
Which key usually closes the preview window and how do we handle it?
Answer options
- Space, through onClick on a button
- Escape, through a keydown event listener (event.key === "Escape")
- Tab, automatically by the browser
- Enter, through the autoClose attribute
You can check the correct answer by solving this task in the CodeWorlds game.