how to log something to the console javascript code example Example 1: how to use js console log console.log('string'); Example 2: console.log console.log("");