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? log() { [native code] }
Now enter just console in the Console, what output do you get back?
console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
Try also entering typeof console
Answer the following questions:
What does console store?
Console is a built in object storing methods like .log , .assert
What does the syntax console.log or console.assert mean? In particular, what does the . mean?
"." is called a dot notation where we can get access sth that belong to an object and the syntax means that we are accessing the methods that belong to the object console.