getting to know the javascript equality operators

Javascript provides a couple of operators for doing equals comparisons and it’s good to know how they differ in functionality.

The equal operator (==) is probably the more commonly used and as we all know returns true if the two values being compared are equal. When the values are of different types it converts them to an appropriate type to do the comparison.

The strict equal (===) returns true if the values are equal and of the same type.

For example:
[1] == 1; //returns true
[1] === 1; //returns false

The not equal (!=) and strict not equal (!==) operators behave similarily for unequal values. According to the Javascript docs the strict operators were added to the language in version 1.3 (current is 1.5).

This can be useful information for those of us who spend time in Authorware script and Actionscript where things are a little bit different.

1 Response

  1. Neidinha says:

    December 4, 2015 at 3:59 pm

    I have noticed that over the coruse of creating a relationship with real estate homeowners, you’ll be able to get them to understand that, in every real estate deal, a commission amount is paid. Finally, FSBO sellers really don’t save the commission payment. Rather, they fight to win the commission by means of doing the agent’s occupation. In doing this, they commit their money and also time to conduct, as best they could, the responsibilities of an representative. Those obligations include disclosing the home by way of marketing, offering the home to prospective buyers, constructing a sense of buyer desperation in order to prompt an offer, arranging home inspections, dealing with qualification assessments with the loan provider, supervising repairs, and facilitating the closing of the deal.


Leave a Reply