#oopquirks

JavaScriptBuzzJavaScriptBuzz
2026-02-06

Constructor Can Return DIFFERENT Object?!

Constructors can LIE about what they create! If you return an object, it REPLACES the instance. The 'new' keyword becomes USELESS. instanceof returns false! This breaks OOP principles!

youtube.com/watch?v=NSHaq1zbSWE

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst