Skip to content

Commit 2fd76d2

Browse files
committed
Update objects.md
Completed dev tool exercise on chrome.
1 parent 6cb823c commit 2fd76d2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,23 @@ 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] }
9+
810

911
Now enter just `console` in the Console, what output do you get back?
12+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
13+
1014

1115
Try also entering `typeof console`
16+
'object'
17+
1218

1319
Answer the following questions:
1420

1521
What does `console` store?
22+
console is a built-in object that stores methods (functions) to interact with the developer console. eg. console.log() - prints messages, console.warn() - prints warnings etc.
23+
24+
1625
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
26+
console.log a tool to write messages and console.assert checks if something is true.
27+
The . is called the dot operator, without the dot, you can’t reach the tool inside the object. eg, the log, the assert.

0 commit comments

Comments
 (0)