Używanie do pętli JS

var scores = [21, 35, 54, 46];
        var arrayLength = scores.length;
        var msg = '';
        var i;

        for (i = 0; i < arrayLength; i++) {
            roundNumber = (i + 1);
            msg += 'Round ' + roundNumber + ': ';
            msg += scores[i] + '<br />';
        }
Anthony Smith