For Loop is Not Running Khan Academy Project:Bookshelf [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 days ago. Improve this question “This program only displays one book. Make an array of books (at least two of them), and use a loop to display a row of them.” I want to use the for loop to draw the other book in the array. In the current state, i remains 0, and must be manually set to 1 to draw the next book. Answer Use a different variable

How to print items within an array sequentially

I’m learning Node and I’m attempting to create a readme generator. I’ve created my prompts to confirm if the user would like to add gifs/images to their markdown. I’ve made it so that if the user confirmed then they can enter in the number and then I pass it into a for loop that generators the markdown text for adding an image. What I’m trying to do is to get it to print list style. So far I’ve gotten it so that it’ll print but only as: ![Alt Text](Link or File Path),![Alt Text](Link or File Path),![Alt Text](Link or File Path)

How to add a string to an array and return the string

Build a function forLoop. It takes an array as an argument. Start counting from 0, and, using a for loop, add a string to the array 25 times. But not just any string. If your i value is 1, add the string “I am 1 strange loop.”; if your i value is anything else, add the string “I am ${i} strange loops.”. (Remember flow control with if and else? And how do we interpolate i?) Then return the array. Learning online and am having trouble understanding what is needed to return the array with the string added to it 25