Did you know that in JavaScript, classes are functions? Oh, and functions are actually objects. Oh, and, to complete the loop, the objects in JavaScript inherit from Object class. Wait, what?
Once you get some experience in JavaScript and start playing around, you start wondering, why does this return a function: Object.getPrototypeOf(()=>{})? And what happens if I call it?
Also, combining with and Proxies can make JavaScript significantly more WEIRD, like weird to the point of actually making 0 sense at all.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Did you know that in JavaScript, classes are functions? Oh, and functions are actually objects. Oh, and, to complete the loop, the objects in JavaScript inherit from
Object
class. Wait, what?Once you get some experience in JavaScript and start playing around, you start wondering, why does this return a function:
Object.getPrototypeOf(()=>{})
? And what happens if I call it?Also, combining
with
and Proxies can make JavaScript significantly more WEIRD, like weird to the point of actually making 0 sense at all.