There was an error while loading. Please reload this page.
1 parent 6b08bbc commit d4b3804Copy full SHA for d4b3804
1 file changed
Sprint-2/4-stretch-explore/chrome.md
@@ -13,3 +13,12 @@ Now try invoking the function `prompt` with a string input of `"What is your nam
13
14
What effect does calling the `prompt` function have?
15
What is the return value of `prompt`?
16
+
17
+Answer
18
19
+alert() displays a pop-up message to the user.
20
21
+prompt() displays a pop-up asking the user to enter some text.
22
23
+prompt() returns the text entered by the user. If the user clicks Cancel,
24
+it returns null.
0 commit comments