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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started