let, const and var in JavaScript
There are three different ways of declaring a variable in JavaScript :
let
const
var
let and const were introduced in ES6, while var is the older way of declaring variables in JavaScript.
let
We use the let keyword for variables whose value we i...
vishnuvnair.hashnode.dev3 min read