Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Windows
Desktop
4 years ago
Test name Executions per second
let 996778816.0 Ops/sec
const 981846592.0 Ops/sec
var 1004408640.0 Ops/sec
Tests:
  • let

    AخA
     
    let aaa = [1];
    let count= 1;
    for(let i=1; i<1000; i++){
      aaa.push(aaa[i-1]+1);
      count*=i/2;
    }
  • const

     
    const aaa = [1];
    let count= 1;
    for(let i=1; i<1000; i++){
      aaa.push(aaa[i-1]+1);
      count*=i/2;
    }
  • var

     
    var aaa = [1];
    let count= 1;
    for(let i=1; i<1000; i++){
      aaa.push(aaa[i-1]+1);
      count*=i/2;
    }