A variable is fundamental for any language. Like C, C++ and other programming language JavaScript also allow you to declare variables. A variable is nothing but a storage which holds your data. It can be simply compared with containers in your house’s kitchen which are used to store different items.