Learn the fundamentals of JavaScript including variables, data types, operators, conditionals, loops, and a Git/GitHub introduction.
var
, let
, const
A JavaScript identifier usually starts with a letter, underscore (_
), or dollar sign ($
). Subsequent characters can also be digits (0
– 9
). Because JavaScript is case sensitive, letters include the characters A
through Z
(uppercase) as well as a
through z
(lowercase).
Some examples of legal names are Number_hits
, temp99
, $credit
, and _name
.
JavaScript has three kinds of variable declarations.