# [var] keyword The var statement declares a function-scoped or globally-scoped variable, optionally initializing it to a value. Visit the following resources to learn more: - [@article@var keyword - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var) - [@article@JavaScript Variables](https://javascript.info/variables) - [@video@Declaring Variables without Var, Let, Const - What Would Happen?](https://www.youtube.com/watch?v=6UAKBYpUC-Y)