+1

What function is used to get input from user and for displaying a message in box ?

3/25/2020 7:12:10 PM

Sahil Pritwani

1 Answer

New Answer

+1

Get data using prompt() function and displayed using alert() function. Like: var getData = prompt(); alert(getData); Also, can using innerHTML, document.write to display data in javascript.