January 2018
Intermediate to advanced
678 pages
20h 16m
English
Your mission, if you choose to accept it, is to modify the Game Night web page’s button event handler, so instead of linking to another web page, it displays a party reservation pass. More specifically, your task is to edit the partyOn function so it does this:
Prompt the user for his/her name.
If the user clicks Cancel, do nothing. Otherwise, display two dialogs with these messages:
▸ The next pop-up will be your party reservation. Print it.
▸ Admit one to the ACM Club party: user’s-name.
The first step is to prompt the user for his/her name, and, not surprisingly, we’ll use the prompt method for that. But how should the prompt method be situated? Normally, as a web programmer, you’ll want to do something ...
Read now
Unlock full access