JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Create an Array

Muhammad Nauman
Muhammad Nauman
6,940 Points

it says that task 1 is no longer valid

cant seem to go further even though i am doing everything correctly

script.js
var data = [ 6,9,8 ];
var assorted = [ apple, 6, true ];
index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JavaScript Loops</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

1 Answer

Steven Ang
Steven Ang
40,656 Points

You didn't surround your string (apple) with quote marks.