Skip to content

Commit e7f49b1

Browse files
committed
objects.md questions answered.
1 parent 5bf0726 commit e7f49b1

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+
it shows information that look like variables and values, and starts with something like:
12+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
1013

1114
Try also entering `typeof console`
1215

1316
Answer the following questions:
1417

1518
What does `console` store?
19+
Console stores several functions inside it, functions like log(), assert(), debug() and more.
20+
1621
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
22+
`console.log` means that we want to use the function log() that is inside the object (native object) `console`. the dot . means is like navigating from the object to the function inside that object.
23+
so `console.log` means "use the object `console`, then from the functions inside the object use log()".

0 commit comments

Comments
 (0)