Skip to content

Commit 47c46d3

Browse files
author
russom
committed
Answer questions on console object
1 parent 19404bf commit 47c46d3

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,18 @@ Answer the following questions:
1414

1515
What does `console` store?
1616
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
17+
18+
19+
// Answer
20+
21+
// 1. When 'console.log' entered it gave the output: 'Uncaught ReferenceError: consol is not defined'.
22+
23+
// 2. When 'console' entered it gave the output: 'console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}'.
24+
25+
// 4. 'console; stores object.
26+
27+
// 5. 'console.log' print/display a value.
28+
29+
// 6. 'console.assert' checks weather a condition is true or false.
30+
31+
// 7. '.' means access the value inside the object.

0 commit comments

Comments
 (0)