JS: Print

By Xah Lee. Date: . Last updated: .

To print, use console.log or alert

console.log("hello");
// print to browser's console

To see the output of console.log, open Browser Console .

alert("hello");
// bring up a pop-up dialog
BUY Ξ£JS JavaScript in Depth