Finding Subarrays in Arrays

Run Settings
LanguageJavaScript
Language Version
Run Command
function subarrays(array){ for(let i=0;i<array.length;i++){ for(let j=0;j<array.length-i;j++){ for(let k=i;k<=i+j;k++){ console.log(array[k]," ") } console.log('\n') } } } subarrays([0,1,2,3])
for(let row=0;row<3;row++){ for(let column=0;column<5;column++){ console.log("*"," ") } }
Editor Settings
Theme
Key bindings
Full width
Lines