Question: a keydown event listener on the textbox so that when the Enter key is pressed in the textbox a function executes. The function should do
a keydown event listener on the textbox so that when the Enter key is pressed in the textbox a function executes. The function should do the following things: Get the radius from the textbox and check if it is valid (i.e., is between 1-25). If it is not valid produce an alert that the radius is invalid. If the radius is valid, the canvas should be cleared and your function should loop through all of the points in the array, drawing and filling a circle at each point using the new radius. Here are some screenshots showing the result after pressing enter in the textbox
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
