Top "Prototype" questions

In prototype-based languages, the prototype of an object is a set of properties which is inherited by all objects which are based on this object.

Extending an Object in Javascript

I am currently transforming from Java to Javascript, and it's a bit hard for me to figure out how to …

javascript function object prototype extends
__proto__ VS. prototype in JavaScript

This figure again shows that every object has a prototype. Constructor function Foo also has its own __proto__ which is …

javascript prototype javascript-objects prototypal-inheritance
Parse JSON String into a Particular Object Prototype in JavaScript

I know how to parse a JSON String and turn it into a JavaScript Object. You can use JSON.parse() …

javascript json parsing object prototype
What are the nuances of scope prototypal / prototypical inheritance in AngularJS?

The API Reference Scope page says: A scope can inherit from a parent scope. The Developer Guide Scope page says: …

javascript angularjs inheritance prototype prototypal-inheritance
Calling method using JavaScript prototype

Is it possible to call the base method from a prototype method in JavaScript if it's been overridden? MyClass = function(…

javascript prototype overriding
JavaScript: What are .extend and .prototype used for?

I am relatively new to JavaScript and keep seeing .extend and .prototype in third party libraries I am using. I …

javascript prototype object-model
Understanding the difference between Object.create() and new SomeFunction()

I recently stumbled upon the Object.create() method in JavaScript, and am trying to deduce how it is different from …

javascript prototype object-create
Use of 'prototype' vs. 'this' in JavaScript?

What's the difference between var A = function () { this.x = function () { //do something }; }; and var A = function () { }; A.prototype.x = function () { //…

javascript prototype this
'this' is undefined in JavaScript class methods

I'm new to JavaScript. New as far as all I've really done with it is tweaked existing code and wrote …

javascript class prototype
Spring Java Config: how do you create a prototype-scoped @Bean with runtime arguments?

Using Spring's Java Config, I need to acquire/instantiate a prototype-scoped bean with constructor arguments that are only obtainable at …

java spring scope prototype spring-java-config