Javascript is muck; don’t let anyone tell you otherwise. But it’s also unavoidable. My latest effort to write better JS code is to use inheritance when creating classes and objects. So before I forget, I’m posting these links - as they’re pretty handy. Sounds like a lot of hassle for a bit of inheritance though!

Very hardcore OO - but efficient

Again hardcore OO