Skip to content

Commit 4cc54a5

Browse files
authored
Update objects.md
1 parent cc758a3 commit 4cc54a5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ 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] }
89

910
Now enter just `console` in the Console, what output do you get back?
10-
11+
## console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
1112
Try also entering `typeof console`
12-
13+
## 'object'
1314
Answer the following questions:
1415

1516
What does `console` store?
17+
## console is an object that stores methods (functions) used for debugging and inspecting values.
1618
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
19+
## console.log - Prints the text to the Console as a log message
20+
## console.assert() writes an error message to the console if the assertion is false
21+
## The dot(.) allows the access of the log method inside the console object

0 commit comments

Comments
 (0)