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 f log(){[native code]} in return
Now enter just console in the Console, what output do you get back?
I getconsole{debug: f,error:f,info:f,log:f....}
Try also entering typeof console
I get object
Answer the following questions:
What does console store?
The console store methods for debugging the console such as assert. clear,count,countReset,debug etc
What does the syntax console.log or console.assert mean? In particular, what does the . mean?
console.log: Output a message to the console
console.assert: Log an error message to the console if the first argument is false.
. This is a member access operator used to access methods and properties of objects
console store methods and functions