Skip to content

Commit 870693a

Browse files
author
Payman IB
committed
Sprint-1/Objects.md completed
1 parent 2a33fa1 commit 870693a

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed
Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
## Objects
22

3-
In this activity, we'll explore some additional concepts that you'll encounter in more depth later on in the course.
3+
//In this activity, we'll explore some additional concepts that you'll encounter in more depth later on in the course.
44

5-
Open the Chrome devtools Console, type in `console.log` and then hit enter
5+
//Open the Chrome devtools Console, type in `console.log` and then hit enter
66

7-
What output do you get?
7+
// What output do you get?
8+
// ƒ (){for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];if(e.apply(n,u),!("assert"===r&&u[0]||a)){a=!0;try{var
9+
// d=Di.parse(new Error).map((t=>t.toString())).splice(1),c=("assert"===…
810

9-
Now enter just `console` in the Console, what output do you get back?
11+
//Now enter just `console` in the Console, what output do you get back?
12+
// console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
1013

11-
Try also entering `typeof console`
14+
//Try also entering `typeof console`
15+
//Answer the following questions:
16+
//What does `console` store?
17+
//The console in JavaScript doesn’t store the program’s variables or data — instead, it’s an object provided by the browser (or Node.js) that contains a set of methods for
18+
//logging information, debugging, and interacting with the JavaScript environment.
1219

13-
Answer the following questions:
14-
15-
What does `console` store?
16-
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
20+
//What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
21+
//In both cases, console is an object, and log or assert are properties (specifically, methods) of that object. The dot (.) is called the dot notation operator or member
22+
//access operator. It is used in JavaScript (and many other languages) to access a property or method that belongs to an object.

0 commit comments

Comments
 (0)