Skip to content

Commit f77fa4d

Browse files
committed
Completed chrome.md file
1 parent 8f9c9d3 commit f77fa4d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

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

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

15+
It displays an alert saying:
16+
17+
chrome://new-tab-page says
18+
19+
Hello world!
20+
1521
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`.
1622

1723
What effect does calling the `prompt` function have?
24+
25+
It displays an alert with a textfield where you can enter some text, e.g. John.
26+
1827
What is the return value of `prompt`?
28+
29+
The string returned from the textfield what the user has entered otherwise null.

0 commit comments

Comments
 (0)