Skip to content

Commit e24a1d6

Browse files
author
russom
committed
console in Chrome devtools explained.
1 parent 1bc9f0c commit e24a1d6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
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

1113
Try also entering `typeof console`
14+
- Object
1215

1316
Answer the following questions:
1417

1518
What does `console` store?
19+
20+
- console means display or print a message
21+
1622
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
23+
24+
- console.log display data inside log. console.assert is evaluate if a condition is true. The `.` means telling console or any other function to access data inside that object just after the dot.

0 commit comments

Comments
 (0)