• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JavaScript by
Q:

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
...