using window prompt in a function code example Example: what is the meaning of prompt in javascript var answer = prompt('What is your name?','Joe Blogg');