I thought I understood the concept of the JavaScript prototype object, as well as [[proto]] until I saw a few posts regarding class inheritance.
Firstly, \"JavaScript OO
A simpler code explaination:
class User { constructor() { this.name = ''; this.age = ''; } static getInfo() { let user = new this(); console.log(user); } } User.getInfo()
Output:
Object { age: "", name: "" }