Skip to content

Commit 7a5070c

Browse files
committed
Explain prompt OK and Cancel
1 parent f1fb152 commit 7a5070c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Sprint-2/4-stretch-explore/chrome.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ What effect does calling the `prompt` function have?
1515
What is the return value of `prompt`?
1616
Calling the alert function displays a pop-up message to the user.
1717

18-
Calling the prompt function asks the user for information. The return value of prompt is the information the user entered.
18+
Calling the prompt function asks the user for information. The return value of prompt is the information the user entered. If the user clicks OK, prompt returns the entered value as a string. If the user clicks Cancel, prompt returns null.
19+

0 commit comments

Comments
 (0)