You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/4-stretch-explore/chrome.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,14 @@ Let's try an example.
9
9
10
10
In the Chrome console,
11
11
invoke the function `alert` with an input string of `"Hello world!"`;
12
+
alert("Hello world!");
12
13
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!"
14
16
15
17
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?");
16
19
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