Skip to content

Commit 837636d

Browse files
learn about console and objects
1 parent 4e607b2 commit 837636d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ 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?
16-
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
19+
console stores object. It stores a collection of methods that allow you to interact with the browser's developer console.
20+
what does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
21+
access the log property/method of the console object.
22+
access the assert method of the console object.

0 commit comments

Comments
 (0)