Wednesday 26 August 2015

Difference between == and === in JS

Example:

== only compares values
=== compares values + type

var test1 = '11',
    test2 = 11;

test1 == test2 // true

test1 === test2 // false

1 comments:

nadeemeaken said...

Casino Tycoon: How Much is Your Jackpot Worth
Casino Tycoon: How Much Is Your Jackpot Worth? · How much is your Jackpot 평택 출장안마 Worth. · How much does 양산 출장샵 it cost to play at a casino? 광명 출장안마 · How much 부천 출장샵 is your Jackpot Worth? · How do I win from 춘천 출장안마 my

Post a Comment


                                                            
 
Design by Abhinav Ranjan Sinha