Performance Optimization Techniques

Why is the first loop implementation more performant?
function processItems(items) {
  const len = items.length;
  for (let i = 0; i < len; i++) {
    // Process item
  }
}

function processItemsSlow(items) {
  for (let i = 0; i < items.length; i++) {
    // Process item
  }
}
Next Question (2/20)