Skip to content

Commit 7659c5a

Browse files
committed
Completed objects.md exercise
1 parent f77fa4d commit 7659c5a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,47 @@ 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+
911
Now enter just `console` in the Console, what output do you get back?
1012

13+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
14+
assert: ƒ assert()
15+
clear: ƒ clear()
16+
context: ƒ context()
17+
count: ƒ count()
18+
countReset: ƒ countReset()
19+
createTask: ƒ createTask()
20+
debug: ƒ debug()
21+
dir: ƒ dir()
22+
dirxml: ƒ dirxml()
23+
error: ƒ error()
24+
group: ƒ group()
25+
groupCollapsed: ƒ groupCollapsed()
26+
groupEnd: ƒ groupEnd()
27+
info: ƒ info()
28+
log: ƒ log()
29+
memory: MemoryInfo {totalJSHeapSize: 10000000, usedJSHeapSize: 10000000, jsHeapSizeLimit: 3760000000}
30+
profile: ƒ profile()
31+
profileEnd: ƒ profileEnd()
32+
table: ƒ table()
33+
time: ƒ time()
34+
timeEnd: ƒ timeEnd()
35+
timeLog: ƒ timeLog()
36+
timeStamp: ƒ timeStamp()
37+
trace: ƒ trace()
38+
warn: ƒ warn()
39+
Symbol(Symbol.toStringTag): "console"
40+
[[Prototype]]: Object
41+
1142
Try also entering `typeof console`
1243

1344
Answer the following questions:
1445

1546
What does `console` store?
47+
48+
It's an object type.
49+
1650
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
51+
52+
The console is an object and log and assert are method. The dot (.) notation means that you are accessing an instance property or method that belongs to the object

0 commit comments

Comments
 (0)