Creating Variables
Variable creation is the means to assign a value to a symbol. In this circumstance, a symbol is a textual representation of the data, much like a container, which can be used to move data through your program. It also improves the legibility of your code. There are multiple ways to create variables, including assignment to the global scope or through the use of either the var
, let
, or const
keywords.
A Note on Referencing
Even at this early stage, it must be highlighted that JavaScript's referencing functionality can get rather confusing. The presence of closures
, prototypes
, global
and local memory stacks
, variable assignment variations
, and function invocation options
can leave even seasoned programmers scratching their heads. Each of the aforementioned features supports JavaScript as a formidable and flexible programming language that's able to challenge most other platforms for almost any purpose. While it does deepen JavaScript's learning...