QUESTION IMAGE
Question
in javascript, what function do we use to ask the user for input? spyros karoris · 12:07 pm do now · 10 points
Brief Explanations
In JavaScript, the prompt() function is used to ask the user for input. It displays a dialog box with a text input field and an optional message. When the user clicks "OK" or presses "Enter", the function returns the text entered by the user. If the user clicks "Cancel", it returns null.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
The prompt() function.