sample-js
console.log("Hello World!");
const nemo = ['nemo']
const large = new Array(100000000).fill('nemo')
const t0 = performance.now()
function findNemo(array){
for(let i=0; i<array.length;i++){
if(array[i]==='nemo'){
// console.log('Found Nemo')
}
}
}
const t1 = performance.now()
findNemo(large)
console.log(t1-t0)INFO