JavaScript : Let, Var, Const
Feb 6, 2023 · 4 min read · Var "var" is a keyword in JavaScript used for variable declaration. It declares a variable and assigns a value to it. The scope of a "var" variable is either function scope or globally scoped if declared outside of a function. console.log(name); //un...
Join discussion