Javascript Variable
In JavaScript, a variable is a named storage location that holds a value, which can be any data type, such as numbers, strings, boolean, etc. It can be declared using keywords like var, let, or const. 1.var var is function scoped, it can be re-declared and reassigned. if ( true ){ var a = 10 ; } console . log ( a ); //Output: 10 2.let let is block scoped, it can be updated , but can't be…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.