- Object (how meta!);
- RegExp; and
Each of these objects has a different coercion with one another, and the order that such interactions occurs can also affect the result.
The operators commonly used when coercing objects are:
- The unary operator (+), commonly used for coercing an object to a number;
- The negation operator (-), not as commonly used as the unary operator, but can also be used to coerce an object to a number;
- The concatenation operator (also represented by +), used to join strings; and
- The Logical NOT operator (!), used to coerce an object to a Boolean value.
I’ll be talking about each of these operators in upcoming posts.
As always, more later!
Hi quirky coders abound!
I’ll be showing some crazy stuff with every passing post, and I may also get you involved in a little project or two along the way. So, with that little morsel of what this blog is about, I’ll also give you a little intro about myself.
I hope I can educate and entertain you with my own findings and little words of wisdom. Feel free to make the occasional comment or ask a question if you like, and I’ll see to responding to them when I can.