Skip to content

Commit 5196ca3

Browse files
committed
4-stretch-explore completed
1 parent d6671b9 commit 5196ca3

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ In the Chrome console, invoke the function `alert` with one argument, the string
99

1010
What effect does calling the `alert` function have?
1111

12+
### Alert would display a pop up window which can be used to display for example error messages.
13+
1214
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`.
1315

16+
17+
### let myName = prompt("What is your name?");
18+
1419
What effect does calling the `prompt` function have?
1520
What is the return value of `prompt`?
21+
22+
### Prompt display text input option that we can store in a variable.
23+
### prompt returns text that user entered in the input field

Sprint-2/4-stretch-explore/objects.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@ Open the Chrome devtools Console, type in `console.log` and then hit enter
66

77
What output do you get?
88

9+
### ƒ log() { [native code] }
10+
11+
912
Now enter just `console` in the Console, what output do you get back?
1013

14+
### the output is console object with it's available properties and methods.
15+
1116
Try also entering `typeof console`
1217

18+
### console is an object
19+
1320
Answer the following questions:
1421

1522
What does `console` store?
23+
24+
### Console store functions that can interact with the console object
25+
1626
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
27+
28+
### "." is used to access a property or method inside an object eg. console.log access the log function where .assert access the assert function

0 commit comments

Comments
 (0)