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.

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

2 Answers

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