Aktiver Arbeitgeber
How would you extend Array in JavaScript so that it could add all the values stored in an array?
Anonym
This is an exploration of Object prototypes, which demonstrates the level of sophistication with the language.
Array.prototype.addValues = function(){ var out=0; for (x = 0; x < arr.length; x++){ out = out + arr[x]; } return out; }
arr should be this
Verschaffe dir einen Vorsprung bei Chancen und Insider-Tipps, indem du deinem Traumunternehmen folgst.
Erhalte personalisierte Jobempfehlungen und Updates, indem du Suchanfragen startest.