Javascript Global Variables

Global variables are those that are available throughout the length of the code, that is, these have no scope. The var keyword is used to declare a local variable or object. If the var keyword is omitted, a global variable is declared.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *