Skip to content

Commit 6a11e8e

Browse files
explained and checked how console work
1 parent 8977800 commit 6a11e8e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ Open the Chrome devtools Console, type in `console.log` and then hit enter
66

77
What output do you get?
88

9+
answer: it shows only log function itself.
10+
911
Now enter just `console` in the Console, what output do you get back?
12+
answer: the output is console object .it shows available function/ method inside console object.
1013

1114
Try also entering `typeof console`
15+
Answer: this shows that console is object.
1216

1317
Answer the following questions:
1418

1519
What does `console` store?
20+
answer: this one store an object that contain method used to interact with browser developer console.
21+
1622
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
23+
Answer : this one let us access to log function that store console object. `.` this one is a dot operator used to access something inside object . console.assert means accessing the assert method from the console object.

0 commit comments

Comments
 (0)