Hackernoon logoHow to Declare Variables in Javascript: Let Vs. Var Vs. Const by@sankalp1122

How to Declare Variables in Javascript: Let Vs. Var Vs. Const

Javascript has many frameworks like Vue, Angular, and libraries like React for frontend Development. Javascript can tackle Backend Development using NodeJS using Node JS. Javascript says nothing is impossible. Javascript has a few ways to declare variables in JS. Let and Const are the ones which you will be using in the Industry. Let is block-scoped and not a global scope local variable used for initializing a statement. Var is defined throughout the program but not if itโ€™s declared in a block.
image
Sankalp Swami Hacker Noon profile picture

Sankalp Swami

I m a self learnt Node JS Developer from India.

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.