Skip to content

Commit b47a1f0

Browse files
committed
Answer questions in objects.md
1 parent aedf788 commit b47a1f0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎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+
Answer: f log() { [native code] }
10+
911
Now enter just `console` in the Console, what output do you get back?
1012

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

17+
Answer: it's an 'object' !!!
18+
1319
Answer the following questions:
1420

1521
What does `console` store?
22+
23+
Answer: A console object with loads of console functions (methods)?
24+
1625
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
26+
27+
Answer: I think the period means it's a method call, for console object methods. and log and assert are the
28+
methods.

0 commit comments

Comments
 (0)