Weekly Webtips
Published in

Weekly Webtips

Understand JavaScript Variables In Depth

Photo by Clément H on Unsplash

Variables are named memory locations. When we declare a variable in JavaScript, it means that a memory location is allocated to store some value and that location can be accessed using the variable name.

Here is an example of a variable declaration.

var name;

Here name is pointing towards some memory location in RAM. One of the ways to store…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Backbencher.dev

Backbencher.dev

2 Followers

Learning never ends. We are exploring JavaScript, React, Deno and other crazy stuff on web right now in Backbencher.dev