Declare JavaScript Variables When we store data in a data structure, we call it a variable. JavaScript variables are written in camel case. An example of camel case is: camelCase. You can declare a variable this way var myName = "Rafael";