DEV Community

Discussion on: JavaScript Interview Question #33: Add two empty arrays and check the type

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

And in some languages, you can overload the + operator and write your own implementation of it that will behave differently for arrays/objects/etc.