What does strictly ( === ) equal to mean?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chandrashekhar maral
    New Member
    • Apr 2007
    • 19

    What does strictly ( === ) equal to mean?

    hi all,
    wht is the meaning of === sign ???is this mean equal or substring type??
    pls tell me ....
    thanx a lot for ur co-operation.
  • hirak1984
    Contributor
    • Jan 2007
    • 316

    #2
    are you sure the code is correct?
    Originally posted by chandrashekhar maral
    hi all,
    wht is the meaning of === sign ???is this mean equal or substring type??
    pls tell me ....
    thanx a lot for ur co-operation.

    Comment

    • DutchKingCobra
      New Member
      • Mar 2007
      • 37

      #3
      hi pal this "===" means
      Strictly equal to

      well hth
      peace

      Comment

      • hirak1984
        Contributor
        • Jan 2007
        • 316

        #4
        now what does that mean?
        Originally posted by DutchKingCobra
        hi pal this "===" means
        Strictly equal to

        well hth
        peace

        Comment

        • DutchKingCobra
          New Member
          • Mar 2007
          • 37

          #5
          hi pal
          it means strictly equal to :)

          x === x //returns true
          x === X //returns false

          well hth
          peace

          Comment

          • DutchKingCobra
            New Member
            • Mar 2007
            • 37

            #6
            hi pal
            maybe this is a better example
            **sorry for the double post :)
            Code:
             
            <script language="javascript">	
            X = '7';
            Y = 7;
            if(X == Y){
            document.write('returns equal with ==');
            }
            if(X === Y){
            document.write('returns NOT equal ===');
            }
            </script>

            Comment

            • hirak1984
              Contributor
              • Jan 2007
              • 316

              #7
              oh! thnx buddy... got it
              Originally posted by DutchKingCobra
              hi pal
              it means strictly equal to :)

              x === x //returns true
              x === X //returns false

              well hth
              peace

              Comment

              Working...