JavaScript Input and print statement #Part 2

 JavaScript Input and print statement #Part 2



         In this article we are lean how to get input from the user and print the statement in JavaScript.

JavaScript Code

<script>

var name=prompt("enter your name");

document.write(name);

</script>



Try it Yourself...

what you think about this article ??

Post a Comment

Previous Post Next Post