Skip to content

Commit 9c41184

Browse files
authored
answering md
1 parent 3a23806 commit 9c41184

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

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

77
What output do you get?
88

9+
. ƒ log() { [native code] }
10+
11+
912
Now enter just `console` in the Console, what output do you get back?
1013

14+
. console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
15+
1116
Try also entering `typeof console`
1217

18+
. 'object'
19+
1320
Answer the following questions:
1421

1522
What does `console` store?
23+
he console stores logs messages, errors and wornning , user input/output, variables and objects, and results of expressions you run.
24+
1625
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
26+
27+
console is a built in object
28+
console.log means Accessing the log on the built in object which is the console
29+
console.assert means Access the assert method on the console object
30+
'.' it is an operator which is used to access a property or method of an object.

0 commit comments

Comments
 (0)