Skip to content

Commit aedf788

Browse files
committed
Answer questions in chrome.md
1 parent 9a33391 commit aedf788

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎Sprint-2/4-stretch-explore/chrome.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ In the Chrome console, invoke the function `alert` with one argument, the string
99

1010
What effect does calling the `alert` function have?
1111

12+
Answer: An alert popped up
13+
1214
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`.
1315

1416
What effect does calling the `prompt` function have?
17+
18+
Answer: A poppup prompts me to write my name.
19+
1520
What is the return value of `prompt`?
21+
22+
Answer: The value I entered in the text box.

0 commit comments

Comments
 (0)