Now that the weather is cooling off and the leaves are beginning to fall Piper finds herself once again looking for something to do inside. It is this time the inner geek starts to come out and she says "Hey, dad, lets geek-out and code again." So here we are on this frigid Saturday morning. Today we are back at it with basic JavaScript.

Pipers Notes

Variables

  • they hold a value
  • it can be assigned
  • the value is being put into the variable
  • when vars are declared undefined by default
  • NaN means "Not a Number"
  • you always put a semi-colon after you finished your code
  • "Number" is a data type in JavaScript which represents numeric data
  • in JavaScript you can use addition, subtraction, multiplication, division
  • you can also use "++" operator
  • i++; is equivalent of i = i + 1;
  • you can easily decrement or decrease a var by one with the "--" operator
  • ++ == adding    – == subtraction
  • decimals are floating point numbers == floats

Lessons Learned

Today I have learned what vars are, what they can be assigned to. JavaScript can use addition, subtraction, multiplication, and division. The things I have learned today are building blocks for bigger things to come. Think of programming like playing with Legos. You start out with one small block and add and build on top until you have something totally cool. I hope you enjoyed my blog post today. Happy Coding!!!