var
keyword.var money;
or var money, name;
var name = "Ali";
, money = 2000.50;
javascript
var myVar = "global";
function checkscope() {
var myVar = "local";
document.write(myVar);
}
break
, boolean
)._123test
| Invalid: 123test
Name
vs name
).abstract
, boolean
, break
, byte
, case
, catch
, char
, class
, const
, continue
, debugger
, default
, delete
, do
, double
, else
, enum
, export
, extends
, false
, final
, finally
, float
, for
, function
, goto
, if
, implements
, import
, instanceof
, int
, interface
, long
, native
, new
, null
, package
, private
, protected
, public
, return
, short
, static
, super
, switch
, synchronized
, this
, throw
, throws
, transient
, true
, try
, typeof
, var
, void
, volatile
, while
, with
.