number , and
For example, computers distinguish between numbers, such as the number
12 , and
strings , such as
"dog" , or
"123 cats" , which are collections of characters. Computers can perform mathematical operations on a number, but not on a string.
Variables allow computers to store and manipulate data in a dynamic fashion. They do this by using a “label” to point to the data rather than using the data itself. Any of the seven data types may be stored in a variable.
Variables are similar to the x and y variables you use in mathematics, which means they’re a simple name to represent the data we want to refer to. Computer
variables differ from mathematical variables in that they can store different values at different times.
var in front of it, like"
I pretty much don’t understand any of this i’m totally new to coding