Simple Calculations
Skills Covered
NaN (Not A Number)
Var
Declaring Variables
Data Types
Arithmetic Operators ( + - * / )
Hey kids! Remember in kindergarten when you were publicly ridiculed for insisting that 2+2=22? Well, it turns out that in the parallel universe of computer programming you might not have been held back a grade! In fact, you're going to find that at times:
2+2 = 4
2+2 = 22
2+2 = 2+2
Furthermore, you're gonna be able to prove sometimes:
two+two = 4
two+two = two2
two+two = twotwo
... and more! By the end of this exercise, you'll be able to show:
yomama=ugly
For real, the stuff we are going to learn is super important. That's because (as you should know) absolutely everything you see on your computer is associated with a number... every color, every sound, and every letter has a corresponding number. So if you can learn to manipulate numbers, you're on your way to manipulating... EVERYTHING!
Yo mama so fat, she got hit by a parked car!