I have personally seen it in code reviews that new JS users who become accustom of using it start using them all over the place in functions which suppress issues. — Vishal Aggarwal18 secs ago
I have the following parent class method in JavaScript:
class Parent {
jump() {
if (!this.isDead()) {
this.lastActivityTime = Date.now();
}
}
isDead() {
// returns a boolean
}
}
In my child class, I'm overriding the jump() method like this:
cl...