logo
logo

Prevent Spacebar

Prevent Spacebar

Create a function
preventDefaultSpacebar
that prevents the default behavior of the spacebar keydown event. The function should take no parameters. For example,
preventDefaultSpacebar()
would prevent the default behavior of the next spacebar keydown event.
Console
Submit
Solution
00:00