Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
0

what is difference between var & let ?

javascript
7th Nov 2017, 5:55 AM
sambasiva
2 Respuestas
+ 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

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
How many time I can use sololearn trial mode?
2 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes