Olası Çoğalt: Javascript'te === nedir?
Javascript === vs == : Does it matter which “equal” operator I use?
===
ne
Advanced JavaScript Interview Questions yılında
Chris Brandsma cevabı bakarak.
basit bir örnek
Olası Çoğalt: Javascript'te === nedir?
Javascript === vs == : Does it matter which “equal” operator I use?
===
ne
Advanced JavaScript Interview Questions yılında
Chris Brandsma cevabı bakarak.
basit bir örnek
=== veriniz Mümkünse sıkı eşit operatörüdür. Her iki işlenen eşitse ve aynı türse, yalnızca bir Boolean True döndürür. 2 ve b 4'tür aşağıdakilerden bütün True vs
a === 2 (True)
b === 4 (True)
a === '2' (False)
,
a == 2
a == "2"
2 == '2'
Strict Equality Check bakınız ..
=== 'sıkı eşit operatörü' ise . Her iki işlenen de eşitse VEYA aynı türde ise true değerini döndürür.
a = 2
b = '2'
a == b //returns True
a === b //returns False
ait
Yinelenen [== vs JavaScript ===: Kullandığım hangi "eşit" operatörü önemli mi?] (Http://stackoverflow.com/questions/359494/javascript- vs-does-it-matter-hangi-eşit-operatör-i-kullanım) –
bu http://stackoverflow.com/questions/523643/difference-between-and-in-javascript adresini ziyaret edin, bir şekilde sorunuzla ilgilidir. ... – Manie
Her zaman EcmaScript, [ECMA-262, 5. Baskı] için en son resmi standardı kontrol edebilirsiniz (http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf) . EcmaScript, JavaScript (tarayıcılar), ActionScript (Adobe Flash) vb. Olarak ticarileştirilenin temel dilidir. – JanC