pav
5/31/2013 - 8:26 PM

recursing_over_array

function printListStartingAtIndex(list, index) {  	
    if (index >= list.length) {
		return;
    } else {
        
        console.log(list[index]);

    return printListStartingAtIndex(list, index + 1);
	}
}

//don't change these lines
var list = [0, 2, 4, 5, 6, 7, 9, 100];
printListStartingAtIndex(list, 0);