What is console.log in javascript?
- @Isabella, If you are given a comprehensive answer, mark it as correct (click on the check mark next to the selected answer). - Vitalina
|
2 answers
The console.log () method displays debug information in the console, i.e. hiding it from users.
There are some more similar functions:
console.info (), console.warn () and console.error ().
All of them differ only visually in the console.
Read about all the advantages of http://habrahabr.ru/post/114483/
|
Logging (debug output, for example) to the developer console.
console.log('Var = ' + Var); |