var x = prompt('', ''); w3 code example Example: js prompt var answer = prompt('What is your name?','Joe Blogg');