Skip to content

Commit 8db6c55

Browse files
committed
completed tasks in Sprint-1/4-stretch-explore/objects.md
1 parent 11fe4df commit 8db6c55

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,22 @@ 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+
911
Now enter just `console` in the Console, what output do you get back?
1012

13+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
14+
1115
Try also entering `typeof console`
1216

17+
object
18+
1319
Answer the following questions:
1420

1521
What does `console` store?
22+
23+
It stores an object with built in methods
24+
1625
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
26+
27+
This syntax is accessing the log and assert methods, which are functions, in the console object. Through the use of the dot operator(.) we are able to access properties of an object.

0 commit comments

Comments
 (0)