File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Sprint-1/4-stretch-explore Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 9292
9393Try also entering ` typeof console `
9494This prints 'Object'.
95+
96+
9597Answer the following questions:
9698
9799What 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+
99102What 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.
You can’t perform that action at this time.
0 commit comments