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