Customize objects coercion in JavaScript

added by JavaScript Kicks
3/25/2019 8:15:39 AM

426 Views

JavaScript, unlike other programming languages, doesn't allow operators overloading. What it allows us to do is to modify the primitive value in which an object is transformed. This is because when an object is coerced, the result is, and must be, a primitive value.


0 comments