Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.