Menu
Samaritan's Purse

CONST

const declares a block scope variable.

It cannot be redeclared or reassigned.

SYNTAX

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

EXAMPLES

SINGLE

MULTIPLE

SCOPE

INTERNAL

let

var

EXTERNAL

Mozilla Developer Network