what is use of console.log in javascript code example
Example 1: how to log to the console javascript
console.log('What you want to log here.');
Example 2: console.log
console.log("Hello, world.");
// Hello, world.
let num = 5;
console.log(num);
// 5