Skip to content

Commit 7332754

Browse files
committed
done objects.md
1 parent 4341313 commit 7332754

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

Sprint-1/explore/objects.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,35 @@
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-
6+
77
What output do you get?
8+
---------------- ƒ log() { [native code] }
9+
810

911
Now enter just `console` in the Console, what output do you get back?
12+
--------------- console
13+
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
14+
methods properties built-in Js devtools which can be useful for debugging and tracking the code
1015

11-
Try also entering `typeof console`
16+
17+
Try also entering `typeof console`
18+
------------- 'object'
1219

1320
Answer the following questions:
1421

1522
What does `console` store?
23+
------------ Is an object Js which contains methos and properties for logging information, displaying errors, warnings, debugging in the browser.
24+
1625
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
26+
------------ the dot notation between `console.log` or `console.assert` is the access to method(function) store within the console object.
27+
28+
---------- eg. With the . operator, we can access the properties in each object within the students array, allowing us to check or modify what’s stored in each object.
29+
30+
let students = [
31+
{ nombre: "Ana", age: 21 },
32+
{ nombre: "Luis", age: 22 },
33+
{ nombre: "Marta", age: 20 }
34+
];
35+
36+
console.table(students);
37+

0 commit comments

Comments
 (0)