display html code in js code example Example 1: print things js console.log("Hello World"); Example 2: print in js console.log()