How to make this repeat loop to have 5 numbers of one color and 5 numbers of another color?
var collection = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
var html='';
for (var i in collection) {
var cor = (i % 5 == 0) ? 'red' : 'blu...
asked by
16.05.2018 / 17:29