Skip to content

Commit 7503415

Browse files
committed
Add outputs and answers for console exploration activity
1 parent 5e06e8c commit 7503415

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,15 @@ Answer the following questions:
1414

1515
What does `console` store?
1616
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
17+
18+
OUTPUTS
19+
`console.log` came back as ƒ log() { [native code] } after hitting enter
20+
21+
`console` came back as console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
22+
23+
typeof console came back as 'object'
24+
25+
ANSWERS
26+
The console stores a collection of functions and data that allow javascript code to interact with the browser's debugging tools
27+
28+
The "." is known as a property accessor, it acts as a bridge telling the javascript to look inside the object on the left to find a specific item on the right.

0 commit comments

Comments
 (0)