Software Engineer @bug0
I'm Favourite Jome, a Software Engineer focused on building reliable systems, great developer tooling, and seamless user experiences.
Markdown supported · ⌘↵ to post
I prefer more solution 1, function which is more straight forward and avoid dealing with stuff like prototype chain which not everybody is comfortable.
Loving syntactic sugar for solution 4.
Crazy JavaScript is a prototyping language and, yet, with this sugar you can get into a class language, but, under the rug, there's the equivalent model you showed here!
Favourite Jome
manjunath reddy
GREAT EXAMPLES..with Clear Explanation..makes it wonderful article..@JOME KEEP MAKING THIS KIND..THANKS🤑🤩