Local and Global Variables
Learn about the concept of local and global variables in a programming language.
We'll cover the following...
Local variables
A variable declared (or created) inside a function is called a local variable, and it can only be accessed from within the function. Outside the function, it’s as if the variable never existed at all. Take a look at the following code:
Access this course and 1400+ top-rated courses and projects.