+ 2

What is the deferance between global variable and Constant variable ?

6th May 2018, 9:33 PM
MD Omer Arafat
MD Omer Arafat - avatar
2 Respuestas
+ 4
Global variable can be accessed by anything in the file (functions, classes, loops ect) Constant variables are variables which value cannot change, if you try to give it a different value the language will throw an error
6th May 2018, 10:05 PM
TurtleShell
TurtleShell - avatar
+ 1
Thats perfect answer !
6th May 2018, 10:06 PM
MD Omer Arafat
MD Omer Arafat - avatar