Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 757 Bytes

File metadata and controls

20 lines (13 loc) · 757 Bytes

Objects

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

Open the Chrome devtools Console, type in console.log and then hit enter

What output do you get? I get function log()

Now enter just console in the Console, what output do you get back? I get Console { assert: assert(), clear: clear(), count: count(), countReset: countReset...

Try also entering typeof console

Answer the following questions:

What does console store? console is a class that store a lot of functions related to console output and input What does the syntax console.log or console.assert mean? In particular, what does the . mean? this means to access the function log from the class console