When I first opened the book and started to read the material, I genuinely thought that I understood what was happening. But then, when we were in class, it became increasingly obvious that JavaScript and coding isn’t something you can learn from reading. Application and practice matters, a lot. And even though I thought I knew what I was reading and thought that it would be very easy to do and remember every definition, it’s not. So I thought for my sake and anyone else’s I would define Values and Variables, a seemingly easy topic that I’ve been making MUCH more complex than it actually is.
Variables: An identifier for a value. An easy way to refer to the data stored in values. I’m thinking of it like a cookie jar. The jar is a variable, it hold cookies, which are the values, and the ingredients of the cookies are the data that is stored. When naming a variable, you can really name it anything you want. However, they cannot start with a number and spaces are not allowed.
I’ve attached a model of what I see in my mind when it comes to values and variables.
Hey Grace, I had the same feeling about JavaScript once I started to read the book. I found that I understood so much more once we were doing it in class, as compared to just reading about it.