DEV Community

Discussion on: ➕ Operator Overloading in JavaScript, yes you can!

adam_cyclones profile image
Adam Crockett Author

I thought about it again, I remember the problem with vector 3 or vector 4 sizes, you need to retain all 4 or 3 values and represent them as a type in such a way that the plus can be used, eg string and number, and then re translate them back to vectors again, it sounds like a fun challenge, let me know if you try it