Let, Var and Const: Defining Variables in JavaScript

Share
  • February 24, 2021
ES6’s finalisation in 2015 brought new ways to define JavaScript variables. The let keyword creates a block-scoped variable while const specifies an immutable value. Here’s the lowdown on how these modern variable types differ from the classic var.

Read This Article on CloudSavvy IT ›

Source : Let, Var and Const: Defining Variables in JavaScript