Home javascript What is console.log in JavaScript?

What is console.log in JavaScript?




Answer 1, authority 100%

The console.log () method outputs debug information to the console, i.e. hiding it from users.

There are also a number of similar functions:
console.info (), console.warn () and console.error ().

They all differ only visually in the console.

Answer 2, authority 57%

Logging (outputting debug data, for example) to the developer’s console.

console.log ('Var =' + Var);

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions