Skip to content

Commit 585c235

Browse files
committed
objects.md
1 parent 60669a0 commit 585c235

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ 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`
14+
->'object'
1215

1316
Answer the following questions:
1417

1518
What does `console` store?
19+
->console stores an object that contains functions for outputting information to the browser’s debugging console.
20+
1621
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
22+
->The . operator accesses a specific property or method on an object. console.log means "use the log function from the console object.
23+
console.assert means access the assert function inside the console object.

0 commit comments

Comments
 (0)