You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/4-stretch-explore/objects.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,8 @@ Try also entering `typeof console`
16
16
Answer the following questions:
17
17
18
18
What does `console` store?
19
-
- The console stores a history of messages your code prints while it runs.
19
+
-`console` is an object that contains methods for outputting messages to the browser console, such as `log()`, `error()`, `warn()`, `info()`, `debug()`, `assert()` and more.
20
+
- It does **not** store the history of printed messages - the browser's console UI handles that history.
20
21
21
22
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
22
23
- You are accessing a function (a method) that belongs to the console object.
0 commit comments