Tag: const

  • JavaScript – Types of Variables

    JavaScript – Types of Variables

    For a very long time, var was the only way to create variables in JavaScript. ECMAScript 2015 introduced two new methods to create variables: let and const. Before we jump into differences, let’s get to know about a few things: DECLARATION: In programming construct, declaration is the process of specifying properties of an identifier. These…