Variables in JavaScript are basically names or references to storage locations in memory. A variable name needs to start with a letter (lowercase is most common, though uppercase can be used), an underscore( _ ) or dollar sign( $ ). Variables will be either local, which means they are only accessible within a function or brackets, or global, which means they are accessible anywhere.
Variable Declarations
var - scoped globally.
const - block scoped by curly brackets {} and unchangeable.
let - block scoped and changeable.
The last option is MORE q
By
DarkMG73 on April 10th, 2020 in