Presents alert dialog with supplied text.
Presents confirmation dialog with supplied text, Yes, and No buttons.
Returns true on ‘Yes’ and false on ‘No’ response.
if confirm("Are you sure?") ...
Presents input dialogs and prompts for input with optional prompt text.
answer = prompt('Would you like to play a game?')