Goal: In the Arithmetic lesson, we learned:
NaN
means not a number but is actually considered a type of number. Infinity
represents infinity and is also a type of number.Begin getting comfortable with these concepts by completing the practice exercises listed below. Soon enough, they'll be second nature!
Make sure you understand the following before moving on:
NaN
?Complete the following exercises to practice arithmetic in JavaScript. If you are with a pair, switch off between every section (i.e.: "Add", "Subtract", etc.) or between every prompt (e.g.: "77 to 99", "99 from 665").