Announcement

Collapse
No announcement yet.

What is the difference between let and var

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is the difference between let and var

    What is the difference between let and var

  • #2
    var is been available from the beginning of JavaScript let Introduced as part of ES6
    var has function scope let has block scope
    Variables will be hoisted Hoisted but not initialized

    Comment

    Related Topics

    Collapse

    Working...
    X