check performance of javascript code code example Example: javascript performance var i; for (i = 0; i < arr.length; i++) {