Skip to content

Commit 1c1dcc5

Browse files
completed sprint-1 4 stretch-explore
1 parent a0aa43a commit 1c1dcc5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ In the Chrome console,
1111
invoke the function `alert` with an input string of `"Hello world!"`;
1212

1313
What effect does calling the `alert` function have?
14+
It displays a pop-up message with the text "Hello world!" and waits for the user to close it.
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

1718
What effect does calling the `prompt` function have?
19+
It displays a dialog box asking the user for input.
20+
1821
What is the return value of `prompt`?
22+
It returns the text the user entered as a string.

0 commit comments

Comments
 (0)