About keyword this | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

About keyword this

What difference between name=this.name; and this.name=name; ?

31st May 2017, 12:23 PM
Василь Євсеєнко
Василь Євсеєнко - avatar
2 Respuestas
+ 3
The first one assigns the name of an object to the variable name. The second one assigns the variable name to the object name.
31st May 2017, 12:27 PM
Caleb Jore
Caleb Jore - avatar
0
Thanks
31st May 2017, 12:28 PM
Василь Євсеєнко
Василь Євсеєнко - avatar