Skip to content

Commit ab155d9

Browse files
committed
explored some additonal console concepts and explained what they do
1 parent 91b6ea9 commit ab155d9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎Sprint-2/4-stretch-explore/objects.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ 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-
8+
ƒ log() { [native code] }
99
Now enter just `console` in the Console, what output do you get back?
1010

11+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
12+
1113
Try also entering `typeof console`
14+
'object'
1215

1316
Answer the following questions:
1417

15-
What does `console` store?
18+
What does `console` store? it stores tools that i can use to test/ check my code.
1619
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
20+
console.log means open the console and print a certain value or message into the terminal
21+
console.assert allows me. to run quick tests to make sure my program is working and will only alert me if the code is broken.
22+
the "." translates to find this tool.

0 commit comments

Comments
 (0)