Skip to content

Commit cafa65e

Browse files
committed
I answered chrome.md
1 parent 72be197 commit cafa65e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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 pops up an alert box with the text Hello world! in it.
16+
- I want to specify this did not work until I formatted it as "alert("Hello world!")
17+
1518
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`.
1619

1720
What effect does calling the `prompt` function have?
1821
What is the return value of `prompt`?
22+
23+
- Calling "prompt" brings up a box for me to insert text.
24+
- The return value of "prompt" is whatever was inserted in the box.
25+
- I input "let myName = prompt("What is your name?")" so it could store the name used.

0 commit comments

Comments
 (0)