printing in javscript code example Example 1: js how to print console.log(text); Example 2: print in javascript console.log("text you want to log")