This below is my for-loop and im a beginner so i need help to understand what [i] means where it says ".checked" and ".value". Also, does "var i" stand for "variable i"? Side note: this loop is for a list of checkboxes.
for (var i=0; i<flightprices.length; i++) {
if (flightprices.length[i].checked) {
flightPrice = +flightprices[i].value;
}}