• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Operators > The Strict Equality and Inequality Operators

5.5. The Strict Equality and Inequality Operators

We just saw that the standard equality operator (= =) can test whether two expressions have the same value. The strict equality operator, written as three consecutive equals signs (= = =), tests whether two expressions are of the same datatype before testing whether they have the same value.

For example, the following standard equality test yields true because the interpreter converts the string "13" to the number 13 before comparing the values:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint