# Operators Worksheet

#### Question 1

What are the comparison operators used for?

To compare two values and return a boolean result of either true or false.

#### Question 2

Explain the difference between the logical AND operator (&&) and the logical OR operator (||).

The logical AND operator is used to combine a boolean expressions, and the logical OR operator is used to evaluate.

#### Question 3

Which operator would you use to find the remainder from dividing 2 numbers.

The modulo operator.

#### Question 4

Which operator would you use if you wanted to find out if two values were NOT equal?

Either the not equal to operator or the less than or greater than operator.

### Coding Problems - See the 'script' tag below this h3 tag. You will have to write some JavaScript code in it.

Always test your work! Check the console log to make sure there are no errors.