• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

what is difference between var & let ?

javascript
7th Nov 2017, 5:55 AM
sambasiva
2 Antworten
+ 7
here is an excellent explanation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let
7th Nov 2017, 6:24 AM
Kamil
Kamil - avatar
+ 2
This is a scope problem. Var is scoped to the nearest function while let is scoped to the nearest block (ie a if statement)
7th Nov 2017, 6:22 AM
Drax
Drax - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Somebody knows how to solve the problem finance app. Even my result is like it must be, but still I can't pass it
1 Votes
Whyy.
1 Votes
Java certification
1 Votes
Game dev
0 Votes
Question is about for loops and range
0 Votes
Beginner in coding and game development – where should I start?
0 Votes
I can't understand the bug
0 Votes
I have completed 39 courses and now I can't find any other course without those 39 couses what can I do
0 Votes
Error with code
0 Votes
What is the history of technology and the workings behind the digital world?
0 Votes