Skip to content

Commit d30d329

Browse files
committed
answered 4-stretch-explore 2 object.md
1 parent 7344e80 commit d30d329

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

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

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,98 @@ 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+
A: ƒ log() { [native code] }
89

910
Now enter just `console` in the Console, what output do you get back?
11+
A: console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
1012

1113
Try also entering `typeof console`
14+
A: 'object'
1215

1316
Answer the following questions:
1417

1518
What does `console` store?
19+
A: console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
20+
assert
21+
:
22+
ƒ assert()
23+
clear
24+
:
25+
ƒ clear()
26+
context
27+
:
28+
ƒ context()
29+
count
30+
:
31+
ƒ count()
32+
countReset
33+
:
34+
ƒ countReset()
35+
createTask
36+
:
37+
ƒ createTask()
38+
debug
39+
:
40+
ƒ debug()
41+
dir
42+
:
43+
ƒ dir()
44+
dirxml
45+
:
46+
ƒ dirxml()
47+
error
48+
:
49+
ƒ error()
50+
group
51+
:
52+
ƒ group()
53+
groupCollapsed
54+
:
55+
ƒ groupCollapsed()
56+
groupEnd
57+
:
58+
ƒ groupEnd()
59+
info
60+
:
61+
ƒ info()
62+
log
63+
:
64+
ƒ log()
65+
memory
66+
:
67+
MemoryInfo {totalJSHeapSize: 12700000, usedJSHeapSize: 11200000, jsHeapSizeLimit: 3760000000}
68+
profile
69+
:
70+
ƒ profile()
71+
profileEnd
72+
:
73+
ƒ profileEnd()
74+
table
75+
:
76+
ƒ table()
77+
time
78+
:
79+
ƒ time()
80+
timeEnd
81+
:
82+
ƒ timeEnd()
83+
timeLog
84+
:
85+
ƒ timeLog()
86+
timeStamp
87+
:
88+
ƒ timeStamp()
89+
trace
90+
:
91+
ƒ trace()
92+
warn
93+
:
94+
ƒ warn()
95+
Symbol(Symbol.toStringTag)
96+
:
97+
"console"
98+
[[Prototype]]
99+
:
100+
Object
16101
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
102+
A:log and assert are the functions under object "console". '.' mean calling for function.

0 commit comments

Comments
 (0)