Variables

Global Variables in JavaScript

Used to declare a variable accessible anywhere in the program.


Syntax
variableName;
variableName = value; //initializing with a value

Notes

Leaving out let or var statements imply global scope. Keywords cannot be used with variable declaration.


Example
coderName = "Anthony";

< Variable Declaration   |   Arrays >

© 2018 SyntaxDB. All Rights Reserved.