27

Run Settings
LanguageJavaScript
Language Version
Run Command
const nemo = ['nemo'] const large = new Array(1000).fill('nemo'); function findNemo(array){ let t0 = performance.now(); for(let i=0;i<array.length;i++){ if(array[i]=="nemo"){ console.log("We found nemo") } } let t1 = performance.now(); console.log(`Call to find nemo took ${t1-t0} milliseconds`); } findNemo(large)
Editor Settings
Theme
Key bindings
Full width
Lines