js-oop-protected Implementation of protected class members in Vanilla JavaScript To run tests type in console: $ npm test An article with comprehensive description of this code https://habr.com/post/425521/