JavaScript Variables
JavaScript has 3 types of variables. There are let, const, var.
May 5, 2021
- let: let is a block-level variable. let variables do not change or reassign for other blocks. the same variable name, but the different values on the different blocks. if variable declares inside of the block. then it’s doesn’t visible on the outside of the block. it works only inside of blocks.
2. const: const stand for constant. it you assign value in const type variable, then it’s cannot changed.
Get Minhazul Abedin’s stories in your inbox
Join Medium for free to get updates from this writer.
3. var : var is different from let & const. it’s work every where. Before ES6 i




