const

The const JS Declarations declares a block-scoped constant.

It cannot be redeclared or reassigned.

Syntax

const name1 = value1[, name2 = value2[, nameN = valueN]]

Examples

1 · Single

2 · Multiple

3 · Scope

let

var

European Computer Manufacturers Association (ECMA)

Home Menu