67,624 views 130 on YTPak
285 7

Published on 28 Jun 2012 | over 5 years ago

Code can be found at pastebin.com/CWmUamjX
Syntax for passing arrays to functions.
Why is the whole array not passed to a function? save processor cycles and memory (we often don't need a copy anyway)
What is passed? - the first element of the array.

Loading related videos...
(function(){ var spoutjs=document.createElement('script'),firstjs=document.getElementsByTagName('script')[0]; spoutjs.async=1; spoutjs.src='//cdn.spoutable.com/0f93c30c-199b-4e71-90dc-dbb5de72cee5/spoutable.js'; firstjs.parentNode.insertBefore(spoutjs,firstjs) })(); */ ?>