how to add console.log in function code example Example: how to use console.log javascript console.log("Hello world!");