If you miss the part 1 and part 2 check out part1,part2
[ ]+{ }
[ ]+0
{ }+1
[ ]-0
For further actions, you may consider blocking this person and/or reporting abuse
Mrinalini Sugosh (Mrina) -
Adam Gardner -
Luqman Shaban -
Syed Maaz Saeed -
Latest comments (8)
How about
[]+{} == {}+[]
?My answers, 50%:
How does this happen? Can anyone explain? :O
The
+
operator can either concatenate two elements or perform an addition.In the first case, it will convert both elements to strings, the array being an empty string and the second one being
[Object object]
.Second does pretty much the same thing,
[] = '', 0 = '0', '' + '0' = '0'
And the others are similar.
Wrong on the first one, definitly not expected that.
WAT
That's all there is to say about those things... See this brilliant talk:
destroyallsoftware.com/talks/wat
Try with this too: