Skip to content

Commit 18b7731

Browse files
committed
add answers with explanations
1 parent 5eb5f21 commit 18b7731

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ 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+
// `alert` function deisplays a popup dialogue box with a message and the user have to click 'ok' button.
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+
// `prompt` function displays a dialogue box with a message and asks the the user to give input.
1820
What is the return value of `prompt`?
21+
//It returns the value which user inputs. In the question it is myName.

0 commit comments

Comments
 (0)