Blank space between DIV tags = extra object in an array? -


noticed when making slideshow same code doing different things in different pages. 1 looping through each slide , start, other adding blank white screen 'image' @ end. despite both slideshow arrays having 3 objects(images), 1 returning images.length==4.

after frustration , investigation realised difference blank line between opening , closing containing <div> element.

so why did create object in array? , can find bug/ error in future? debugging did not show errors made difficult me find problem. there way of avoiding similar mistakes in future?

js fiddle