console.time("timer"); //start time with name = timer console.timeEnd("timer"); //end timer and log time difference