how to print with javascript code example Example 1: js how to print console.log(text); Example 2: javascript print console.log("Who's Joe?")