O'Reilly logo
  • M J thinks this is interesting:

isAvailable=false;

From

Cover of JavaScript : Moving to ES2015

Note

should be

this.isAvailable = false;

without the "this", isAvailable is created as a global variable and code outside the object can modify the value