Array.prototype

Run Settings
LanguageJavaScript
Language Version
Run Command
var arr = []; var v2 = arr.push(2); console.log(v2); console.log(arr); Array.prototype.push = function(item){ this[this.length] = item; }; var foo = [1, 2]; foo.push(3); console.log(foo);
Editor Settings
Theme
Key bindings
Full width
Lines