Skip to content

Commit fb61446

Browse files
committed
Chrome console exercise
1 parent 60283cb commit fb61446

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ Let's try an example.
88
In the Chrome console, invoke the function `alert` with one argument, the string `"Hello world!"`;
99

1010
What effect does calling the `alert` function have?
11+
- A popup with chrome:/new-tab-page says "hello world"
1112

1213
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`.
1314

1415
What effect does calling the `prompt` function have?
16+
- A popup with chrome:/new-tab-page says "What is your name?" with a text box to type your name.
17+
1518
What is the return value of `prompt`?
19+
- "myname" which is the value that i entered.

0 commit comments

Comments
 (0)