# [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: - [var keyword - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var) - [JavaScript Variables](https://javascript.info/variables) - [JavaScript Variables - W3Schools](https://www.w3schools.com/js/js_variables.asp) - [Declaring Variables without Var, Let, Const - What Would Happen?](https://www.youtube.com/watch?v=6UAKBYpUC-Y) - [How to declare variables in different ways in JavaScript?](https://www.geeksforgeeks.org/how-to-declare-variables-in-different-ways-in-javascript/)