Skip to content

Commit 491dfc7

Browse files
Explore JavaScript objects
1 parent 588ca6b commit 491dfc7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ In this activity, we'll explore some additional concepts that you'll encounter i
55
Open the Chrome devtools Console, type in `console.log` and then hit enter
66

77
What output do you get?
8+
<!-- ƒ log() { [native code] } -->
89

910
Now enter just `console` in the Console, what output do you get back?
11+
<!-- console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …} -->
1012

1113
Try also entering `typeof console`
1214

1315
Answer the following questions:
1416

1517
What does `console` store?
1618
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
19+
20+
<!-- Console stores an object containing functions such as {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …} -->
21+
<!-- The '.' is used to access properties or functions inside an object -->

0 commit comments

Comments
 (0)