Multiple choice technology web technology

Which function accepts input from the user?

  1. accept()

  2. prompt()

  3. input()

  4. enter()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In JavaScript, the prompt() function displays a dialog box that prompts the user for input. While input() is used in Python, prompt() is the standard client-side JavaScript function for this purpose.