Writes message to the log file and the debugger's console.
console.log('Hello World!');
// Hello World!console.log("I'm %d years old.", userAge);
// I'm 20 years old.console.log('My first car was a', car, '. The object is: ', someObject);
// My first car was a Toyota. The object is: { name: 'Toyota' }console.log({ str: 'Some text', id: 5 });
// { str: 'Some text', id: 5 }
Writes message to the log file and the debugger's console.
console.log('Hello World!'); // Hello World! console.log("I'm %d years old.", userAge); // I'm 20 years old. console.log('My first car was a', car, '. The object is: ', someObject); // My first car was a Toyota. The object is: { name: 'Toyota' } console.log({ str: 'Some text', id: 5 }); // { str: 'Some text', id: 5 }