Skip to content

Commit 581eb7b

Browse files
committed
Chrome console exercise (objects)
1 parent fb61446 commit 581eb7b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ 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

11-
Try also entering `typeof console`
1213

14+
Try also entering `typeof console`
15+
- 'object'
1316
Answer the following questions:
1417

1518
What does `console` store?
19+
- console stores different functions you can use to display or check information in the console.
20+
1621
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
22+
- console.log() method accepts any value and outputs that the given value to the console.
23+
- console.assert() takes a boolean first and displays the message only when the condition is false.
24+
- "." means to access or call something inside this object either .log() or .assert() function.

0 commit comments

Comments
 (0)