Complete the code to listen for a click event on the whole page using svelte:body.
<svelte:body on:[1]={handleClick} />The svelte:body tag listens to events on the entire page body. To detect clicks anywhere, use on:click.
Complete the code to listen for a keydown event on the whole page using svelte:body.
<svelte:body on:[1]={handleKeydown} />To listen for keyboard key presses on the entire page, use on:keydown with svelte:body.
Fix the error in the code to correctly listen for a scroll event on the whole page using svelte:body.
<svelte:body on:[1]={handleScroll} />The correct event name for detecting page scroll is scroll. 'scrolling' and 'move' are not valid event names.
Fill both blanks to listen for mouseenter and mouseleave events on the whole page using svelte:body.
<svelte:body on:[1]={handleEnter} on:[2]={handleLeave} />
Use mouseenter and mouseleave to detect when the mouse enters or leaves the page body.
Fill all three blanks to listen for keydown, click, and scroll events on the whole page using svelte:body.
<svelte:body on:[1]={handleKeydown} on:[2]={handleClick} on:[3]={handleScroll} />
Use keydown, click, and scroll events with svelte:body to listen for keyboard, mouse click, and page scroll events respectively.