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
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,18 @@ invoke the function `alert` with an input string of `"Hello world!"`;
12
12
13
13
What effect does calling the `alert` function have?
14
14
15
+
It displays an alert saying:
16
+
17
+
chrome://new-tab-page says
18
+
19
+
Hello world!
20
+
15
21
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
22
17
23
What effect does calling the `prompt` function have?
24
+
25
+
It displays an alert with a textfield where you can enter some text, e.g. John.
26
+
18
27
What is the return value of `prompt`?
28
+
29
+
The string returned from the textfield what the user has entered otherwise null.
0 commit comments