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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,12 @@ In the Chrome console,
11
11
invoke the function `alert` with an input string of `"Hello world!"`;
12
12
13
13
What effect does calling the `alert` function have?
14
+
- Shows a message in a pop up box and stops the page until the user clicks OK.
14
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
+
- Shows a pop up box with a message and an input box.
20
+
18
21
What is the return value of `prompt`?
22
+
- Prompt() returns the text the user enters, or null if they cancel the dialog.
0 commit comments