Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/42/d436282994/htdocs/wp.vpalos.com/wp-content/plugins/wp-markdown/markdownify/markdownify.php on line 299
vpalos.com | instance

vpalos.com // milk, cookies, segfaults…

A simple(r) approach for class-based OOP in JavaScript.

by Valeriu Paloş on June 18, 2011

Like others before me, I found JavaScript’s prototype-based OOP support – while very powerful – quite cumbersome in some situations where I needed a certain structure or hierarchy of objects, situations in which one quickly comes to the conclusion that the best answer would be the concept of a Class. However, while I am well […]