Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

How to create a variable "three"

If we can only use the variables a, b and c, how do we make a variable named 'three'?

index.html
```<!DOCTYPE html>
<html lang="en">
<title>JavaScript Foundations: Operators</title>
<script>
var a = 1;
b = 2;
c = 4;
var three = 3;

/*
Common operators used in numeric calculations:
subtraction: -
multiplication: *
division: /
modulus: %
grouping: ()

creating variables and assigning correct values to
them using only variables a, b, and c and the above
operators. For example, if the task is "Create a
variable named "seven" and assign the correct
numeric value 7 to it using only variables a, b,
and c and the common numeric operators." then one
possible solution would be:
var seven = a + b + c;
Another solution could be:
var seven = (b * c) - a;
Or:
var seven = a + a + a + a + a + a + a;
But that's kinda lame. Good luck! */

</script>
<body>
<h1>JavaScript Foundations</h1>
<h2>Operators</h2>
<script src="viewer.js"></script>
</body>
</html>
```

```var five = a + c;