Why does ++[[]][+[]]+[+[]] return the string "10"?

Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=Rn13xy1u4J8



Duration: 6:17
0 views
0


Why does ++[[]][+[]]+[+[]] return the string "10"?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/5292296)SapuSeven |
(stackoverflow.com/users/514749/pimvdb)pimvdb |
(stackoverflow.com/users/645186/shef)Shef |
(stackoverflow.com/users/96100/tim-down)Tim Down |
(stackoverflow.com/users/919647/renatoluna)renatoluna |
(stackoverflow.com/users/1120161/vlad-shlosberg)Vlad Shlosberg |
A special thanks goes out to the (https://stackoverflow.com/questions/7202157/why-does-return-the-string-10)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

syntax javascript







Tags:
syntax
javascript