ho wto print hello using javascript code example Example 1: javascript hello world console.log("Hello World!"); Example 2: javascript hello world alert("Hello world");