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-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,16 @@ 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
-
13
12
What effect does calling the `alert` function have?
14
13
14
+
- A window pops up with `"Hello world!"` message
15
+
15
16
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`.
16
17
17
18
What effect does calling the `prompt` function have?
19
+
20
+
- a new window popup saying what is your name with a text input field for user to type.
21
+
18
22
What is the return value of `prompt`?
23
+
24
+
- A text string that input by the user is returned.
0 commit comments