User:Rye Greenwood/sandbox.js

class Foo { constructor(bar) { this.bar = bar }	baz { let toReturn = this.bar return toReturn; } } console.log("isES6", new Foo(true).baz);