JavaScript: Print

By Xah Lee. Date: . Last updated: .

To print, use alert or console.log.

alert("hello");
// bring up a pop-up dialog
console.log("hello");
// print to browser's console

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

BUY Ξ£JS JavaScript in Depth