Skip to content

Commit 2f5a89b

Browse files
committed
update: explanations for console methods and dot notation in sprint -1 of objects.md
1 parent 7b076d8 commit 2f5a89b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ 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-
8+
ƒ log() { [native code] }
99
Now enter just `console` in the Console, what output do you get back?
10-
11-
Try also entering `typeof console`
10+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
11+
Try also entering `typeof console` // object
1212

1313
Answer the following questions:
1414

15-
What does `console` store?
16-
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
15+
What does `console` store? different functions (methods) like s log messages, show errors, warnings
16+
17+
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?`console.log` means accessing 'log' function inside 'console' object
18+
`console.assert` mean accessing 'assert' function inside 'console' object
19+
`.` is the dot notation and It’s used to access properties or methods of an object.

0 commit comments

Comments
 (0)