Learn JavaScript 06: Getting User Input via prompt()
Aug 23 2020

Sivaraman Dhamodaran

The prompt() call in JavaScript display a message with a text box and OK & Cancel buttons. In this JavaScript tutorial, we will see how to use the prompt() function along with alert() and confirm().