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);