Untitled

Run Settings
LanguageJavaScript
Language Version
Run Command
function boo(n) { for (let i =0; i < n.length; i++) { console.log('boo!'); } } boo([1,2,3,4,5]) // space complexity of O(1) because we're only adding let i=0 function arrayOfHiNTimes(n) { let hiArray = []; for (let i = 0; i < n; i++) { hiArray[i] = 'hi'; } return hiArray; } console.log(arrayOfHiNTimes(6));
Editor Settings
Theme
Key bindings
Full width
Lines