Hi, I'm a beginner at javascript, and just start to study with a book "Head First javascript", now studying for Looping.

<script type="text/javascript">
var seats = [ false, true, false, true ];
var selSeat = -1;
function initSeats() {
for (var i = 0; i < seats.length; i++) {
if (seats[i]) {
document.getElementById("seat" + i).src = "seat_avail.png";
}
else {
document.getElementById("seat" + i).src = "seat_unavail.png";
}
}
}

----------------------

seats[i] = (seats[false]), (seats[true]), (seats[false]), (seats[true]). right?

At this point, I can not understand meaning of true / false.

Is "seats[true]" means either 1) seats has a value or 2) seats has a value (the name is true)...?? Which one is correct?

mightbe this question looks silly, but appriciate get some advice.

Jkim from Tokyo.