how to ask for input in window.alert in js code example Example: js prompt var answer = prompt('What is your name?','Joe Blogg');