Skip to content

Commit c6f0fd0

Browse files
solve chrom.md
1 parent e3bf82a commit c6f0fd0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Sprint-2/4-stretch-explore/chrome.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ Let's try an example.
88
In the Chrome console, invoke the function `alert` with one argument, the string `"Hello world!"`;
99

1010
What effect does calling the `alert` function have?
11+
Answer : it will brings a popup with alert message "Hello World"
1112

1213
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`.
1314

1415
What effect does calling the `prompt` function have?
1516
What is the return value of `prompt`?
17+
18+
Answer: calling the `prompt` function will bring up a dialog box with a field to put an answer
19+
20+
The return value of `prompt is the variable `myName`

0 commit comments

Comments
 (0)