Question: QUESTION 27 Consider the following code, which key is pressed to change direction? window.addEventListener(keydown, function { switch (event.keyCode) { case 49: direction - Idirection break
QUESTION 27 Consider the following code, which key is pressed to change direction? window.addEventListener("keydown", function { switch (event.keyCode) { case 49: direction - Idirection break case 50: delay/- 2.0: break case 51: delay - 2.0: break QUESTION 28 In a similar manner to buttons and menus, we can create a visual slider element on our web page in the HTML file and handle the input from the events in the JavaScript file. True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
