In JavaScript, [] == 0 is true.
In JavaScript, [0] == 0 is also true.
You might assume [] == [0] is true from this.
But no. JavaScript says it's false.
It works with strings too, look:
In JavaScript, ββ == 0 is true.
In JavaScript, β0β == 0 is also true.
You might assume ββ == β0β is true from this.
But no. JavaScript says itβs false.
That's from my meme right
itβs a repost from the TBGs
but yeah I made it from yours
It works with strings too, look:
In JavaScript, ββ == 0 is true.
In JavaScript, β0β == 0 is also true.
You might assume ββ == β0β is true from this.
But no. JavaScript says itβs false.