[Solved] Could you help me Explain what this means?
[ad_1] var list=[“https://stackoverflow.com/questions/37702877/Red.jpg”,”Amber.jpg”,”Green.jpg”,”AmberLast.jpg”]; this is an array of names of image sources. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array var index = 0; this a variable, it’s called index, and has the value of 0 because you can target an element of an array (e.g Amber.jpg) using it’s index. An array’s index by default starts at 0 (zero based), so in … Read more