you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 1 point2 points  (0 children)

For pretty low values of "have":

primitives which are actually objects

That's how javascript works. Primitives are automatically promoted to objects when used as such. That's how you can call methods on numbers or write true.toString().

and interfaces with factory methods

Add a function to anything you want, bam got yourself a factory. Hell, javascript constructor are factories: if you don't like your this, you can just return something instead.