Q.

How to Take Input in Javascript?

see full answer

Start JEE / NEET / Foundation preparation at rupees 99/day !!

21% of IItians & 23% of AIIMS delhi doctors are from Sri Chaitanya institute !!
An Intiative by Sri Chaitanya

(Unlock A.I Detailed Solution for FREE)

Ready to Test Your Skills?

Check your Performance Today with our Free Mock Test used by Toppers!

Take Free Test

Detailed Solution

In JavaScript, the prompt() function lets us ask the user for input. We provide the message we want to show the user as a parameter. After the user clicks "ok," the function returns their input. We usually save this input in a variable so we can use it later in our program.
Watch 3-min video & get full concept clarity

tricks from toppers of Infinity Learn

score_test_img

Get Expert Academic Guidance – Connect with a Counselor Today!

whats app icon
How to Take Input in Javascript?