Coercion will ONLY occur when you attempt something that requires a value be forced into something else. Will always be false, unless they refer to the same actual object. For any two objects: anyObject = anyOtherObject JS is not ‘type safe’ after all, and it seems to be able to, or at least try to, coerce anything to anything. This may have been self-evident to you, but it wasn’t to me. Step 1: Understand Coercion ONLY Applies to Primitive Types
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |