Difference between VAR and LET | Sololearn: Learn to code for FREE!

0

Difference between VAR and LET

I'm confused about when use var and when use let, what's the difference?

10/8/2020 3:20:53 AM

Bruno Ricardo Corrêa

3 Answers

New Answer

+13

https://www.tutorialspoint.com/difference-between-var-and-let-in-javascript#:~:text=The%20main%20difference%20between%20let,globally%20regardless%20of%20block%20scope.

+10

Bruno Ricardo Corrêa welcome to Sololearn! next time, try using the search bar before posting any questions. Thanks https://www.sololearn.com/discuss/840637/?ref=app https://www.sololearn.com/discuss/2150529/?ref=app https://www.sololearn.com/discuss/1666973/?ref=app https://www.sololearn.com/discuss/1440112/?ref=app https://www.sololearn.com/discuss/1126539/?ref=app https://www.sololearn.com/discuss/1645109/?ref=app

+2

See the appropriate lesson in js course