Skip to content

Commit 8977800

Browse files
executed code and explained how it worked
1 parent ca85fbb commit 8977800

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

1313
What effect does calling the `alert` function have?
1414

15+
1. alert function display a pop-up message box in the browser containing text "hello world"
16+
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

1719
What effect does calling the `prompt` function have?
1820
What is the return value of `prompt`?
21+
22+
2. calling a prompt display a pop-up message box and ask for user input and prompt return a text entered by user as string.

0 commit comments

Comments
 (0)