Exercise 1.3

Doing math author(s): Cameron King

HTML

<script src="https://ckxng.github.io/cub-scout-coding/lib/easy.js"></script>
<p>
  You can also do math in JavaScript. The simple math operators that you are
  used to are all here, see below for the list and what they do.
</p>

<ul>
  <li>- subtraction</li>
  <li>+ addition</li>
  <li>/ division</li>
  <li>* multiplication</li>
</ul>

<p>
  Take a look at the examples below. Can you use JavaScript to find out the
  answer to the following math question?
</p>

<p>
  What number do you get, if you add up the ages of everyone in your household?
</p>

JavaScript

say(2+2);
say(10-5);
say(8/4);
say(3*3);