query: When should we define functions on an object's prototype vs. in the object itself?
positive_passages.docid: 1967
positive_passages.text: How does JavaScript .prototype work?
negative_passages.docid: 50298
negative_passages.text: How do you create a method for a custom object in JavaScript?
negative_passages.docid: 57044
negative_passages.text: What does return this in Function.prototype.method do?
negative_passages.docid: 139738
negative_passages.text: Cases where 'this' is the global Object in Javascript
negative_passages.docid: 82730
negative_passages.text: Legitimate uses of Object(o)
negative_passages.docid: 121807
negative_passages.text: Const in JavaScript: when to use it and is it necessary?
negative_passages.docid: 13705
negative_passages.text: What techniques can be used to define a class in JavaScript, and what are their trade-offs?
negative_passages.docid: 119498
negative_passages.text: Function vs. Object Literal Notaion - is there a diifference?
negative_passages.docid: 115418
negative_passages.text: Are functions valid keys for javascript object properties?
negative_passages.docid: 26567
negative_passages.text: this.constructor.prototype -- can't wholly overwrite, but can write individual props?
negative_passages.docid: 39332
negative_passages.text: Are "(function ( ) { } ) ( )" and "(function ( ) { } ( ) )" functionally equal in JavaScript?
negative_passages.docid: 19714
negative_passages.text: Does some JavaScript library use dynamic aspects of the prototype system?
negative_passages.docid: 136145
negative_passages.text: Prototyped and a non-prototyped method?
negative_passages.docid: 152294
negative_passages.text: Why wouldn't I use Child.prototype = Parent.Prototype rather than Child.prototype = new Parent(); for Javascript inheritance?
negative_passages.docid: 133385
negative_passages.text: When should I make explicit use of the `this` pointer?
negative_passages.docid: 119204
negative_passages.text: Defining a Javascript prototype
negative_passages.docid: 26026
negative_passages.text: When to use self over $this?