Skip to content

Commit 06d3cc8

Browse files
committed
Completed the tasks and answered the questions
1 parent 24c4800 commit 06d3cc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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 shows a message in a pop up box and stops the page until the user clicks "OK".
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+
Shows a pop up box with a message "What is your name?" and an input box.
20+
1821
What is the return value of `prompt`?
22+
Prompt() returns the text the user enters, or null if they cancel the dialog.

0 commit comments

Comments
 (0)