Skip to content

Commit 7a97c4f

Browse files
committed
investigate console object and dot notation in java script using chrome Devetools.
1 parent 254cd3f commit 7a97c4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ 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+
ƒ log() { [native code] } this output i got when i entered the 'console.log' this function is named 'log'.
89

910
Now enter just `console` in the Console, what output do you get back?
11+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …} it contains many functions, we can use it for logging and debugging.
1012

1113
Try also entering `typeof console`
1214

1315
Answer the following questions:
1416

1517
What does `console` store?
18+
The "console" stores the collection of functions used for logging and debugging your java code.
1619
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
20+
these are using dot notation, console is an object and log and assert are methods(functions).
21+
dot means access a property or method that belongs to an object.

0 commit comments

Comments
 (0)