Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 800 Bytes

File metadata and controls

25 lines (14 loc) · 800 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 "ƒ log() { [native code] }"

Now enter just console in the Console, what output do you get back?

  • I get "console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}"

Try also entering typeof console

  • I get "'object'"

Answer the following questions:

What does console store?

  • Console stores various data, like "debug", "error", "info", "log" & "warn"

What does the syntax console.log or console.assert mean? In particular, what does the . mean?

  • The "." means for it to look inside for information using the tool written on the right.