File tree Expand file tree Collapse file tree
Sprint-2/4-stretch-explore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,12 +5,18 @@ In this activity, we'll explore some additional concepts that you'll encounter i
55Open the Chrome devtools Console, type in ` console.log ` and then hit enter
66
77What output do you get?
8+ Answer: It outputs the function definition itself, showing ` ƒ log() { [native code] } ` .
89
910Now enter just ` console ` in the Console, what output do you get back?
11+ Answer: It returns the ` console ` object containing various built-in properties and logging methods.
1012
1113Try also entering ` typeof console `
14+ Answer: It outputs ` "object" ` .
1215
1316Answer the following questions:
1417
1518What does ` console ` store?
19+ Answer: ` console ` is a built-in global object that stores properties and methods used to output messages, errors, and warnings to the browser console.
20+
1621What does the syntax ` console.log ` or ` console.assert ` mean? In particular, what does the ` . ` mean?
22+ Answer: The dot (` . ` ) is the property accessor operator. It is used to access specific methods (` log ` , ` assert ` ) attached to the ` console ` object.
You can’t perform that action at this time.
0 commit comments