can i put 1 var global in a function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can i put 1 var global in a function?

please help me

27th Jul 2021, 2:29 AM
Victor Emmanuel Reina Liscano
Victor Emmanuel Reina Liscano - avatar
4 Answers
27th Jul 2021, 3:15 AM
SωAti
SωAti - avatar
+ 3
Victor Emmanuel Reina Liscano variable inside function is local not global
27th Jul 2021, 3:01 AM
A͢J
A͢J - avatar
+ 1
Variable local can i use outside of the function?
28th Jul 2021, 3:59 AM
Victor Emmanuel Reina Liscano
Victor Emmanuel Reina Liscano - avatar
0
Victor Emmanuel Reina Liscano You cannot use local variable outside the function.
28th Jul 2021, 5:17 AM
A͢J
A͢J - avatar