Skip to content

Commit 3c4f80e

Browse files
committed
alert & prompt
1 parent 7dd742e commit 3c4f80e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ Let's try an example.
1010
In the Chrome console,
1111
invoke the function `alert` with an input string of `"Hello world!"`;
1212

13-
What effect does calling the `alert` function have?
13+
What effect does calling the `alert` function have? - alert is a pop up display message with an OK button - you can close once you click on the OK button
1414

1515
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`.
1616

17-
What effect does calling the `prompt` function have?
18-
What is the return value of `prompt`?
17+
What effect does calling the `prompt` function have? - the prompt will also display a message usually question - however this time you will have an empty field to enter the value or answer - a cancel and a OK button
18+
19+
What is the return value of `prompt`? - whatever the user inputs into the empty field

0 commit comments

Comments
 (0)