console logfunction code example Example: console.log console.log("Hello, world."); // Hello, world. let num = 5; console.log(num); // 5