Skip to content

Commit d4b3804

Browse files
answer 4.1
1 parent 6b08bbc commit d4b3804

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎Sprint-2/4-stretch-explore/chrome.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ Now try invoking the function `prompt` with a string input of `"What is your nam
1313

1414
What effect does calling the `prompt` function have?
1515
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

Comments
 (0)