What are the Scopes of variable in javscript | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What are the Scopes of variable in javscript

JavaScript variable s

7th Feb 2017, 3:32 AM
amallal t l
amallal t l - avatar
2 Respuestas
0
global: any variable declared outside of a function local: variable access only within the function, and make sure to use the "var" if you don't it'll become a global variable
7th Feb 2017, 6:19 AM
totoro
totoro - avatar
23rd Aug 2017, 8:16 PM
Kinga Chojnowska
Kinga Chojnowska - avatar