Skip to content

Commit 0daa315

Browse files
docs: complete objects console exercise
1 parent a9067eb commit 0daa315

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,25 @@ 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+
I get ƒ log() { [native code] } as my output when i type console.log and then hit enter in console.
89

910
Now enter just `console` in the Console, what output do you get back?
11+
The output i get is console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
1012

1113
Try also entering `typeof console`
14+
The output i get 'object'
1215

1316
Answer the following questions:
1417

1518
What does `console` store?
19+
console does NOT store values.
20+
It is used to output.
21+
1622
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
23+
console.log is use print the output.
24+
console.assert if the condition is true nothing happen
25+
if the condition failed it will print assertion failed.
26+
"." the member access operator in JavaScript.
27+
it is used to connects the console object with log method.
28+
29+

0 commit comments

Comments
 (0)