Skip to content

Commit a8546b9

Browse files
study and comment out sprint-1/4-mandatory-explore/objects.md
1 parent 1f7f9e2 commit a8546b9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
In this activity, we'll explore some additional concepts that you'll encounter in more depth later on in the course.
44

55
Open the Chrome devtools Console, type in `console.log` and then hit enter
6+
ans: done!
67

78
What output do you get?
8-
9+
ans: undefined
910
Now enter just `console` in the Console, what output do you get back?
10-
11+
ans: a list of available methods for console.
1112
Try also entering `typeof console`
12-
13+
ans: done!
1314
Answer the following questions:
14-
15+
ans: object
1516
What does `console` store?
1617
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
18+
ans: console.log() will print given parameter in it,
19+
console.assert(<expression>, <comments>) only print out the given comment if expression inside it is fault or false

0 commit comments

Comments
 (0)