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

Task is broken

I tried every possible thing with this and it seems simple but for some reason every time I create the second array it reports as if the 1st array is no longer passing.

script.js
var data = [ 1, 2, 3 ];
var assorted = [ 'cat' 7, true ];
index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JavaScript Loops</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

2 Answers

Thanks, I figured it out just before seeing this. syntax syntax syntax!