Don't understand console.long()


#1



https://www.codecademy.com/en/courses/getting-started-v2/2/1?curriculum_id=506324b3a7dffd00020bf661#


In lesson 12 it talks about the function however does not explicitly tell me what ot does. The answer itself is given so that doesn't help either. Someone plz shed some light on this situation.


Replace this line with your code.


#2

He wrote in the instructions, that he wants you to write:

console.log(2*5)
console.log("Hello")

#3

The console is a debugging tool (documentation). You can tell your program to display information in the console. It is useful when troubleshooting your code, just add extra console.log() statements at various point in your program to print out the values of any variables that you need to know the values of. You put what you want to display inside the parentheses as shown in that exercise.

In the Codecademy JavaScript exercises, the console is the black area on the right of your screen. Many web browsers give you access to the console, look for Tools or Developers Tools, do a Google search for your particular browser if necessary.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.