Lesson

Comparison with the Equality Operator, freeCodeCamp Basic Javascript

Lesson Summary

In this challenge we are going over the equality operator. There are different ways to compare values in javascript. When we compare values we can have our code make decisions based on those results, this is a powerful way to check our code and decide what our code should do next. Equality is checked with two equal signs '=='. This is different that our assignment operator which is just one equal sign '='. One equal sign simply assigns the value on the right to the variable on the left. When we want to check whether or not values are equal, we use double equal signs.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: