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

JavaScript in Depth

Basic Syntax

Value Types

Variable

String

Property

Object and Inheritance

Array

Function

Constructor/Class

Iterable 🌟

Misc