Message from JavaScript discussions

October 2018

— 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

— 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

— Did not know this

— Wtf

— Node doesn't do this

— 

> function Meme() {
... return { foo: 'bar' }
... }
undefined
> m = new Meme()
{ foo: 'bar' }
> m instanceof Meme
false

> function Memery() {
... this.foo = 'bar';
... }
undefined
> m = new Memery()
Memery { foo: 'bar' }
> m instanceof Memery
true
>

Message permanent page