how to take the value enter via a prompt method in javascript code example Example: js prompt var answer = prompt('What is your name?','Joe Blogg');