There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

SzethFriendOfNimi ,

So in JavaScript there’s the assignment


<span style="color:#323232;">=
</span>

and the comparator is


<span style="color:#323232;">==
</span>

Since there’s no types JS will do implicit conversion before comparison when using == in a case like this


<span style="color:#323232;">if(false == '0'){
</span><span style="color:#323232;">    //this is true
</span><span style="color:#323232;">}
</span>

But with === it doesn’t. It means literally compare these


<span style="color:#323232;">if(false === '0'){
</span><span style="color:#323232;">    //this is false
</span><span style="color:#323232;">}else{
</span><span style="color:#323232;">    //so this will execute instead 
</span><span style="color:#323232;">}
</span>

But this, however, will


<span style="color:#323232;">var someState = false;
</span><span style="color:#323232;"> if(someState === false){
</span><span style="color:#323232;">    //this is true
</span><span style="color:#323232;">}
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines