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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,14 @@ 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 pops up an alert box with the text Hello world! in it.
16
+
- I want to specify this did not work until I formatted it as "alert("Hello world!")
17
+
15
18
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
19
17
20
What effect does calling the `prompt` function have?
18
21
What is the return value of `prompt`?
22
+
23
+
- Calling "prompt" brings up a box for me to insert text.
24
+
- The return value of "prompt" is whatever was inserted in the box.
25
+
- I input "let myName = prompt("What is your name?")" so it could store the name used.
0 commit comments