Favourite Jome
Software Engineer @bug0
I prefer more solution 1, function which is more straight forward and avoid dealing with stuff like prototype chain which not everybody is comfortable.
Great article and awesome read.
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π€π€©