JS Puzzles · Concept
Implicit globals
var declares variables with function, module, or global scope. It can also give each variable an initial value.
Last updated
- Since
- July 2015
Syntax
var name1;
var name1 = value1;
var name1 = value1, name2 = value2;In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
letconstAssignment (=)Destructuring