Skip to content

Commit 1839259

Browse files
committed
tried out the alert and prompt functions in chrome and wrote down what I think they do
1 parent 498c331 commit 1839259

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ 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? it shows a pop up box with the text input that was added in brackects on calling alert.
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? it shows a pop up box with the message that was written when the function was called, it prompts the user to respond.
18+
What is the return value of `prompt`? it returns a string.

0 commit comments

Comments
 (0)