let

The let JS Declarations declares a block-scoped variable.

Syntax

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

Examples

1 · Single · Declare and Assign

2 · Single · Declare then Assign

3 · Multiple · Declare and Assign

4 · Multiple · Declare then Assign

5 · Scope

const

var

European Computer Manufacturers Association (ECMA)

Home Menu