Skip to content

Commit 598a6ec

Browse files
completed objects.md
1 parent eadc040 commit 598a6ec

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
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+
Answer: function log() { (native code) }
89

910
Now enter just `console` in the Console, what output do you get back?
11+
Answer: Output is 'console {debug: function, error: function, info: function, log: function, warn: function, ...} with a drop down list of all functions'
1012

1113
Try also entering `typeof console`
14+
Answer: output is 'object'
1215

1316
Answer the following questions:
1417

1518
What does `console` store?
19+
Answer: this stores all the functions that the console has.
20+
1621
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
22+
Answer: 'console' is an object and 'log/assert' is properties of log. the `.` is going to look-up which property is stored in the object

0 commit comments

Comments
 (0)