Message from JavaScript discussions

October 2018

— I quickly checked myself just now, and yep

— 

dgloredglore-mbp  ~  node
> function Test() {
... return {p:1}
... }
undefined
> Test()
{ p: 1 }
> Test().constructor
[Function: Object]
> new Test()
{ p: 1 }
> (new Test()).constructor
[Function: Object]
> (new Test()).constructor === Test
false

— You can still make it factory, just lock constructor in clojure

— Thanks haha

— I now learned something

— It is crazy how I am so deep into the systems design but still tiny little facts like this elude me from time to time

Message permanent page

— Maybe one day I will be a JS expert, lol

— Do u like the w3school tutorial?

— Lmao

— Maybe a day I will know JS :)

— Yes, I've done this to return a proxy instead of the created object

— What the fuck, never do this