Exercise 2.1
Hello + name!
author(s):
Cameron King
HTML
<script src="https://ckxng.github.io/cub-scout-coding/lib/easy.js"></script>
<p>
Information can be saved into little containers called "variables", that you
can use over and over in a program. You information to variables with the
equals (=) operator.
</p>
<p>
Let's look back at our first exercise, when we said "Hello world!" What if we
wanted to say hello and goodbye. If we use a variable, we can re-use some of
this information a second time.
</p>
<p>
Take a look at the example below, and try substituting your own name into the
variable.
</p>
JavaScript
name = "world";
say("Hello "+name+"!");
say("Goodbye "+name+"!");