In this code can you write out what it would look in each iteration what array, index, and element would be I know element would be start as 1 and end as 5 but I'm not sure what the other would be. Just pick one not all of them thank you
The output in the console doesn't match with the code on the left lol, that was the output of running triple not square bruh
And if you want your question answered just add the index and array parameters to the display function and console.log them so you can see what they are for each iteration
View all comments
Show parent comment
1
u/TheRealBornToCode Jun 01 '24 edited Jun 01 '24
The output in the console doesn't match with the code on the left lol, that was the output of running
triplenotsquarebruhAnd if you want your question answered just add the
indexandarrayparameters to the display function andconsole.logthem so you can see what they are for each iteration