Hello everyone π, this article is also part of my series Javascript: The Hard Parts v2 Cover. Though you don't have to read the previous articles to follow up with this article. But I recommend reading my previous articles in the series π. Introduc...

Markdown supported Β· ββ΅ to post
Favourite Jome
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!
manjunath reddy
I'm a javascript developer
GREAT EXAMPLES..with Clear Explanation..makes it wonderful article..@JOME KEEP MAKING THIS KIND..THANKSπ€π€©