Skip to content

Commit 4a965e5

Browse files
committed
sprint 1 stretch activity
1 parent 6b7a4ed commit 4a965e5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ Let's try an example.
99

1010
In the Chrome console,
1111
invoke the function `alert` with an input string of `"Hello world!"`;
12+
alert("Hello world!");
1213

13-
What effect does calling the `alert` function have?
14+
What effect does calling the `alert` function have?
15+
A popup modal appears with the String -> "Hello world!"
1416

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`.
18+
let myName = prompt("What is your name?");
1619

17-
What effect does calling the `prompt` function have?
18-
What is the return value of `prompt`?
20+
21+
What effect does calling the `prompt` function have?A modal appears with the "What is your name?" with an input field to enter your name. The input is then stored in the variable myName
22+
What is the return value of `prompt`? My name stored in the variable myName

0 commit comments

Comments
 (0)