Skip to content Skip to sidebar Skip to footer
Showing posts with the label Prototype

Difference Between Classical Inheritance And Prototype Inheritance

I found this definition here : https://medium.com/javascript-scene/10-interview-questions-every-jav… Read more Difference Between Classical Inheritance And Prototype Inheritance

Javascript Json.stringify Doesn't Handle Prototype Correctly?

I've been initializing my reusable classes like this (constructor is usually a copy-constructor… Read more Javascript Json.stringify Doesn't Handle Prototype Correctly?

Why Is Foo.hasownproperty('__proto__') Equal To False?

var foo = { bar : 5 } Why is foo.hasOwnProperty('__proto__') equal to false? It can'… Read more Why Is Foo.hasownproperty('__proto__') Equal To False?

Javascript: Object Or Object.prototype?

I just learned about prototype in Javascript (not the framework, the native feature). I perfectly g… Read more Javascript: Object Or Object.prototype?

How Could This Be True??? Obj2.__proto__.isprototypeof(obj2) //true

Consider this short code: let obj1 = { name: 'obj1', } const obj2 = Object.create(obj1);… Read more How Could This Be True??? Obj2.__proto__.isprototypeof(obj2) //true

What Is In Object.__proto__?

In Google Chrom's javascript, objects have a property named __proto__ that points to their prot… Read more What Is In Object.__proto__?

How Can I Add Properties To An Object In Ie6?

I've got a particularly tricky problem using AJAX, which works fine in IE7 and Firefox, but not… Read more How Can I Add Properties To An Object In Ie6?

Javascript Prototype Inheritance

This seems inconsistent, but probably is due to the fact that I'm new to javascript's proto… Read more Javascript Prototype Inheritance