Welcome to Westonci.ca, where curiosity meets expertise. Ask any question and receive fast, accurate answers from our knowledgeable community. Experience the convenience of getting accurate answers to your questions from a dedicated community of professionals. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

Which of the follow best describes the difference between local and global variables? A. global variables require the keyword var when created; local variables can be created without the use of the var keyword B. global variables are only used inside an onEvent( ); local variables are only used outside an onEvent( ) C. global variables are permanent and can be used anywhere in your code; local variables are temporary and can only be used where it was created D. local variables are permanent and can be used anywhere in your code; global variables are temporary and can only be used where it was created

Sagot :

Lanuel

The difference is: C. global variables are permanent and can be used anywhere in your code; local variables are temporary and can only be used where it was created.

What is a variable?

A variable simply refers to the specific name which points to a location in computer memory, and it's typically used for storing a value such as an integer.

In Computer technology, there are two main types of variables and these include the following:

  • Global variables
  • Local variables

Basically, a difference between local and global variables is that global variables are permanent and can be used anywhere in your code while local variables are temporary and can only be used where it was created.

Read more on global variables here: https://brainly.com/question/15876187

#SPJ1