Samaritan's Purse

LET

let declares a block scope variable.

SYNTAX

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

EXAMPLES

SINGLE DECLARE AND ASSIGN

SINGLE DECLARE THEN ASSIGN

MULTIPLE DECLARE AND ASSIGN

MULTIPLE DECLARE THEN ASSIGN

SCOPE

INTERNAL

const

var

EXTERNAL

Mozilla Developer Network