Skip to content

Commit 78ab25c

Browse files
committed
done chrome.md
1 parent 771f1cb commit 78ab25c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Sprint-1/explore/chrome.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,23 @@ 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+
---------- alert("hello Maria");
14+
---------------Hello Maria
15+
16+
What effect does calling the `alert` function have? show a window with the alert at the top of the browser
1417

1518
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`.
1619

20+
--------- prompt("What is your name?"); //maria
21+
--------- var myName = prompt("What is your name?");
22+
------------- Maria
23+
1724
What effect does calling the `prompt` function have?
18-
What is the return value of `prompt`?
25+
26+
//prompt will display a dialog text box to interact wit the user, this can be used to ask question and then stored in one variable. this can have two option "ok" and "cancel", if cancel is pressed nothing will run. and this will be "undefine".
27+
28+
29+
What is the return value of `prompt`?
30+
31+
//If the user enters a name and clicks "OK," the input text is stored in the variable myName.
32+

0 commit comments

Comments
 (0)