js function how to display output code example
Example 1: print things js
console.log("Hello World");
Example 2: how to print to screen in javascript
console.log("Hello World!");
alert("Console has been updated.");
console.log("Hello World");
console.log("Hello World!");
alert("Console has been updated.");