class Jason {
x = 0;
#y = 'private!';
foo() {
console.log(this.x);
console.log(this.#y);
}
}
jason = new Jason();
jason.foo();
> Executing task: babel-node /Users/willij87/workspace/testing/testing-js/index.js <
0
{ writable: true, value: 'private!' }
Terminal will be reused by tasks, press any key to close it.