+ 1
can i put 1 var global in a function?
please help me
4 Answers
+ 14
Victor Emmanuel Reina Liscano
You can use it but u need to define it outside the function
https://www.sololearn.com/discuss/2587249/?ref=app
https://www.sololearn.com/discuss/2349950/?ref=app
+ 3
Victor Emmanuel Reina Liscano
variable inside function is local not global
+ 1
Variable local can i use outside of the function?
0
Victor Emmanuel Reina Liscano
You cannot use local variable outside the function.