in JavaScript by

Difference between “var” and “let” Keywords?

1 Answer

0 votes
by

    • Var was there from the beginning but the let was introduced in ES2015/ES6.
      Let has block scope and “Var” has function scope

Related questions

+1 vote
asked Jul 16, 2019 in JavaScript by Indian
0 votes
asked Jun 16, 2019 in JAVA by reins.robin
+1 vote
asked Jul 16, 2019 in JavaScript by Indian
...