We’re going to be discussing efficient JavaScript in some upcoming training sessions, and I wanted to get this code snippet out for discussion. Commonly, developers will process an array of values, calling some pre-defined function with this idion: var i=values.length;…