javascript beginner. "The for...in" question.
Applied to an array object, but days cannot be defined.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Loops and Control</title>
</head>
<body>
<script>
  var days = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];
  var message = "";
  for (i in days) {
  message += 'Day ' + i + ' is' 
  day[i] + '\n';
  }
 alert(message);
 </script>
</body>
</html> 
     
     
     
     
     
    