Skip to content

Commit a9067eb

Browse files
Answer questions about alert, prompt, and console behaviour in chrome.md
1 parent 0dc471c commit a9067eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sprint-1/4-stretch-explore/chrome.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ In the Chrome console,
1111
invoke the function `alert` with an input string of `"Hello world!"`;
1212

1313
What effect does calling the `alert` function have?
14+
It will open alert and say Hello world
1415

1516
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`.
1617

1718
What effect does calling the `prompt` function have?
19+
It Will open the prompt and asking for the input.
1820
What is the return value of `prompt`?
21+
prompt() returns a string, or empty string, or null (if Cancel is pressed).
22+

0 commit comments

Comments
 (0)