[JavaScript] Object-Oriented Programming (OOP) with JavaScript : Prototypal Inheritance on Built-in Objects (feat. prototype chain)
console.log(jonas.__proto__); // prototype of jonas
console.log(jonas.__proto__.__proto__); // top of the prototype chain
console.log(jonas.__proto__.__proto__.__proto__); // null
console.dir(Person.prototype.constructor);
const arr = [3, 6, 4, 5,...
jaydenjpark.hashnode.dev1 min read