Skip to content

Commit 1cf3f70

Browse files
committed
I believe that I've Done the sprint 1 and this the last exercise.
1 parent f5522e7 commit 1cf3f70

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@ Let's try an example.
1010
In the Chrome console,
1111
invoke the function `alert` with an input string of `"Hello world!"`;
1212

13-
What effect does calling the `alert` function have?
13+
What effect does calling the `alert` function have? It opens a popup message box in the browser with the text:
14+
You must click "OK" to dismiss it before you can do anything else on the page.
1415

1516
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`.
1617

17-
What effect does calling the `prompt` function have?
18-
What is the return value of `prompt`?
18+
What effect does calling the `prompt` function have? It opens a popup input box asking:
19+
What is your name?
20+
and I can enter a response, then click "OK" or "Cancel".
21+
22+
What is the return value of `prompt`? Return value:
23+
24+
If I enter a name (e.g., "Sami") and press OK, it returns the string: "Sami"
25+
26+
If I press Cancel, it returns: null

0 commit comments

Comments
 (0)