Samaritan's Purse

VAR

var declares a function scope variable.

SYNTAX

var 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

let

EXTERNAL

Mozilla Developer Network