Tag: output question

Javascript var, let and const with examples.

Var, let and const keywords are used to declare variables in Javascript. Var is the oldest keyword for declaring variables. And let and const are introduced in ES6. Scope:Var: function scopelet: Block scopeconst: block scope like let but…

Read More »