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().