Message from JavaScript discussions

May 2019

— Maybe you’re only using () around an expression

— 

When called why does it throws error but when we do Number({}); it gives Nan
Why change in behaviour occurs?

— Link of article http://2ality.com/2012/01/object-plus-object.html

— Can i share a channel where latest technology news are posted

— Anyone??

— I think it’s because every object has toString prototype and by default returns a primitive, not an object. So if you overwrite toString to return an object it will fail.

Message permanent page

— No, I don’t think it’s related to this group.

— You can't

— Ok

— const f = typeof;
f('foo');

— Doesn't work for typeof

— But works for all functions