Language types

String language type

Try the free JavaScript compiler

A String is an immutable sequence of UTF-16 code units. It may contain surrogate pairs or unpaired surrogates. Concatenation creates a string value; indexing is by code unit, not necessarily a user-perceived character.

Formal Syntax & Structure

javascript syntaxjavascript
const label = "ready";

Working Example

Example Snippetjavascript
console.log("ready" + "!");
JavaScript Reference