Skip to content

Commit 6925ca3

Browse files
committed
answered according to comments on github
1 parent d33c07e commit 6925ca3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,17 @@ warn
9292

9393
Try also entering `typeof console`
9494
This prints 'Object'.
95+
96+
9597
Answer the following questions:
9698

9799
What does `console` store?
98-
object
100+
Answer: console is an object that stores functions you can call to inspect values, debug code, and print information.
101+
99102
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
100-
console.log("Hello") calls the log method to print something to the console.
103+
console is a built‑in object provided by the browser or Node.js. It contains many debugging functions.
104+
The dot (.) is the property access operator. It means go inside this object and get the property or method with this name.
105+
106+
107+
101108

102-
console.assert(condition, "Message") calls the assert method to check a condition, and only prints the message if the condition is false.

0 commit comments

Comments
 (0)