Skip to content

Commit 11fe4df

Browse files
committed
completed tasks in Sprint-1/4-stretch-explore/chrome.md
1 parent c45239d commit 11fe4df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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+
It creates an alert dialog box with a message of whatever is passed into the alert function call
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+
It creates a dialog box with a message of what is passed to the prompt function and an input field
22+
1823
What is the return value of `prompt`?
24+
25+
This is the response typed into the input field in the prompt dialog window or null if cancel is selected

0 commit comments

Comments
 (0)