Skip to content

Commit 157a8ce

Browse files
committed
Answered 4-stretch-explore/objects.md
1 parent a7f84c3 commit 157a8ce

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@ 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

1317
Answer the following questions:
1418

1519
What does `console` store?
16-
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
20+
21+
- It stores functions/methods
22+
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
23+
- `console.log` means “get the log property from the console object.”
24+
- `console.assert` means “get the assert property from the console object.”
25+
- `.` is the property access operator, it lets us access specific functions or values that belong to an object.

0 commit comments

Comments
 (0)