I'm looking to create a series of links:
Using a for loop to generate these links, I want to store every x-th value into the photos[i]
array. The code I have so far is not working as expected due to issues with string concatenation. My knowledge of JavaScript is limited, so I need help completing the code.
Here's my current code snippet:
links =5;
var i;
var photos=new Array();
for(i=0;i<links;i++){
photos[i] +='http:// im gh.us/mk' +i+ ' .jpg ';
}