Skip to content

Commit 1749f57

Browse files
committed
Sprint 1 stretch: chrome console object exploration
1 parent 0b6948d commit 1749f57

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## chrome.md
2+
3+
### What the task asked me to do
4+
Explore the Chrome DevTools console and investigate what the console object stores and how dot notation works.
5+
6+
---
7+
8+
### What I did (steps)
9+
1. Opened Chrome DevTools and navigated to the Console tab.
10+
2. Entered `console.log` and observed that it returned a function.
11+
3. Entered `console` and observed that it returned an object with multiple methods such as log, warn, error, and assert.
12+
4. Entered `typeof console` and confirmed that console is an object.
13+
14+
---
15+
16+
### What I learned
17+
- `console` stores an object containing many methods used for debugging.
18+
- `console.log`, `console.assert`, etc. are functions stored inside the console object.
19+
- The `.` operator is called dot notation and is used to access properties or methods of an object.
20+
21+
---
22+
23+
### Useful links
24+
- https://developer.mozilla.org/en-US/docs/Web/API/Console
25+
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_objects

0 commit comments

Comments
 (0)