Skip to content

Commit b8a991f

Browse files
authored
Update chrome.md with alert and prompt explanations
Clarify the effects and return values of alert and prompt functions.
1 parent 11f2fe4 commit b8a991f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Sprint-1/4-stretch-explore/chrome.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ invoke the function `alert` with an input string of `"Hello world!"`;
1212

1313
What effect does calling the `alert` function have?
1414

15+
[ChunYanWong] Display an alert or message box in the browser with the message "Hello world!"
16+
1517
Now try invoking the function `prompt` with a string input of `"What is your name?"` - store the return value of your call to `prompt` in an variable called `myName`.
1618

1719
What effect does calling the `prompt` function have?
20+
21+
[ChunYanWong] Display an input box to capture the user input
22+
1823
What is the return value of `prompt`?
24+
25+
[ChunYanWobg] Inputted name

0 commit comments

Comments
 (0)