Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to take input in javascript in coding

In JavaScript, we can get user input like this: 
var name = window.prompt("Enter your name: "); 
alert("Your name is " + name);
 
PREVIOUS NEXT
Tagged: #input #javascript #coding
ADD COMMENT
Topic
Name
2+7 =