When should I use Let or var in javascript

Asked

Viewed 41 times

1

I have observed in some javascript applications, the use of letin place of varwhen declaring a variable.

So I’m having the following questions:

  • What’s the difference between letand var
  • At what point should I use one or the other
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.