What is the difference between the keyword Let and var in Javascript?

Asked

Viewed 93 times

5

I was studying about Redux, and I realized that in the code there were many variables being declared preceded by Let, instead of var.

I was in doubt, what is the difference between the two statements below?

var variavel1;
let variavel2;
No answers

Browser other questions tagged

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