Skip to content

Commit 8e63d7e

Browse files
committed
Answered questions in objects.md
1 parent c9b584a commit 8e63d7e

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+
ƒ log() { [native code] }, which is telling me what it is, a function
89

910
Now enter just `console` in the Console, what output do you get back?
11+
assert
12+
:
13+
ƒ assert()
14+
clear
15+
:
16+
ƒ clear()
17+
context
18+
:
19+
ƒ context()
20+
count
21+
:
22+
ƒ count()
23+
countReset
24+
:
25+
ƒ countReset()
26+
createTask
27+
:
28+
ƒ createTask()
29+
debug
30+
:
31+
ƒ debug()
32+
dir
33+
:
34+
ƒ dir()
35+
dirxml
36+
:
37+
ƒ dirxml()
38+
error
39+
:
40+
ƒ error()
41+
group
42+
:
43+
ƒ group()
44+
groupCollapsed
45+
:
46+
ƒ groupCollapsed()
47+
groupEnd
48+
:
49+
ƒ groupEnd()
50+
info
51+
:
52+
ƒ info()
53+
log
54+
:
55+
ƒ log()
56+
memory
57+
:
58+
MemoryInfo {totalJSHeapSize: 13400000, usedJSHeapSize: 11200000, jsHeapSizeLimit: 3760000000}
59+
profile
60+
:
61+
ƒ profile()
62+
profileEnd
63+
:
64+
ƒ profileEnd()
65+
table
66+
:
67+
ƒ table()
68+
time
69+
:
70+
ƒ time()
71+
timeEnd
72+
:
73+
ƒ timeEnd()
74+
timeLog
75+
:
76+
ƒ timeLog()
77+
timeStamp
78+
:
79+
ƒ timeStamp()
80+
trace
81+
:
82+
ƒ trace()
83+
warn
84+
:
85+
ƒ warn()
86+
Symbol(Symbol.toStringTag)
87+
:
88+
"console"
89+
[[Prototype]]
90+
:
91+
Object
92+
which is a list of methods in console
1093

1194
Try also entering `typeof console`
1295

1396
Answer the following questions:
1497

1598
What does `console` store?
99+
methods to interact with the console
16100
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
101+
it means, from the object console, access the function log or assert.
102+
the fullstop is the connector to access the methods

0 commit comments

Comments
 (0)