Language types

Object language type

Try the free JavaScript compiler

Object values have identity and can expose properties. Functions are callable objects. Assigning an existing object to another binding does not clone it, and const protects the binding rather than recursively freezing the object.

Formal Syntax & Structure

javascript syntaxjavascript
const record = { count: 1 };

Working Example

Example Snippetjavascript
const record = { count: 1 };const alias = record;alias.count = 2;console.log(record.count);
JavaScript Reference