Skip to content

Commit 771b9ec

Browse files
Answered question about invoking Alert for chrome.md file
1 parent bb30402 commit 771b9ec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +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+
1314
What effect does calling the `alert` function have?
15+
// By invoking alert("Hello world!"); the effect it has is that a small modal dialog box pops up at the top of the window browser displaying Hello world!, along with an OK button.
1416

1517
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`.
1618

0 commit comments

Comments
 (0)