Discord
Login
Community
DARK THEME

What is a global variable

Just wondering what a global variable is. I presume that it's a variable that can be accessed anywhere in the code.

Yup! Global variables can be accessed anywhere. Local variables can only be accessed in the function they were declared in.

That was fast, anyway thanks for informing me

A variable called "global" was introduced to allow JavaScript code to refer to variables and objects in MicroScript code (when combining the two languages).

This works when your project's language is set to "MicroScript 2.0" and you add files or libraries that use JavaScript.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community