Skip to content

Commit 6b9b495

Browse files
committed
tested and answered
1 parent 22be92b commit 6b9b495

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@ In this activity, we'll explore some additional concepts that you'll encounter i
44

55
Open the Chrome devtools Console, type in `console.log` and then hit enter
66

7-
What output do you get?
7+
What output do you get?
8+
ƒ log() { [native code] }
89

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

1113
Try also entering `typeof console`
14+
Object
1215

1316
Answer the following questions:
1417

1518
What does `console` store?
19+
Console is an object storing a collection of functions for logging, debugging and inspecting code.
20+
1621
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
22+
The dot is the property access operator in JavaScript
23+
Console.log means : get the log property from the console object
24+
log is a function so can be called using parentheses
25+
console.assert can test for assumptions in the code, if the condition is true nothing happens but if its false it prints an error message.

0 commit comments

Comments
 (0)