how request the user to input data in javascript code example Example: js get input from user var name = prompt("Please enter your name", "Harry Potter");