query: why use var slice instead of Array.prototype.slice in a closure?
positive_passages.docid: 78469
positive_passages.text: Is a closure for dereferencing variables useful?
negative_passages.docid: 9785
negative_passages.text: What’s the difference between "Array()" and "[]" while declaring a JavaScript array?
negative_passages.docid: 66693
negative_passages.text: Closure in python?
negative_passages.docid: 50837
negative_passages.text: Array slicing in Ruby: explanation for illogical behaviour (taken from Rubykoans.com)
negative_passages.docid: 82116
negative_passages.text: Should I be using object literals or constructor functions?
negative_passages.docid: 66352
negative_passages.text: How do I clone a closure, so that their types are the same?
negative_passages.docid: 19832
negative_passages.text: (1, eval)('this') vs eval('this') in JavaScript?
negative_passages.docid: 66350
negative_passages.text: Weird closure behavior in python
negative_passages.docid: 63109
negative_passages.text: What's the point of the var keyword?
negative_passages.docid: 56155
negative_passages.text: What are the benefits to using anonymous functions instead of named functions for callbacks and parameters in JavaScript event code?
negative_passages.docid: 148271
negative_passages.text: Why to avoid creating objects of primitives in JavaScript?
negative_passages.docid: 131096
negative_passages.text: Defining methods via prototype vs using this in the constructor - really a performance difference?
negative_passages.docid: 19638
negative_passages.text: What is the purpose of the var keyword and when should I use it (or omit it)?
negative_passages.docid: 103406
negative_passages.text: (...()) vs. (...)() in javascript closures
negative_passages.docid: 139404
negative_passages.text: JavaScript: Class.method vs. Class.prototype.method
negative_passages.docid: 45943
negative_passages.text: JavaScript "new Array(n)" and "Array.prototype.map" weirdness
negative_passages.docid: 16088
negative_passages.text: How does the (function() {})() construct work and why do people use it?