Skip to content

Commit 8ce1a61

Browse files
committed
style: improve readability of Q&A formatting
1 parent bf465b6 commit 8ce1a61

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

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

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,23 @@ 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-
answer: the output defines itself
8+
9+
answer: the output gives the function definition, i.e ƒ log() { [native code] }
10+
911
Now enter just `console` in the Console, what output do you get back?
10-
answer: it returns the console object containing different built in properties and logging methods
12+
13+
answer: it returns the console object with all its methods i.e (log,warn,error,assert,etc)
14+
1115
Try also entering `typeof console`
12-
answer: it outputs "object"
16+
17+
answer: it outputs "object"
18+
1319
Answer the following questions:
1420

1521
What does `console` store?
16-
answer: it is a built in global object that stores methods used to output messages, errors and warnings to the browser console
22+
23+
answer: it is a built-in global object that stores methods used to output messages, errors and warnings to the browser console
24+
1725
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
18-
answer:The console.log() static method outputs a message to the console
26+
27+
answer: the "." is a property accessor used to access a property or a method in an object. so console.log mean go into the object and grab the log

0 commit comments

Comments
 (0)