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

What am i doing wrong?

I dont know why this is not right. Please help.

var data ['1', 
<!DOCTYPE html>
  <meta charset="utf-8">
  <title>JavaScript Loops</title>
<script src="script.js"></script>

1 Answer

Steven Parker
Steven Parker
187,067 Points

:point_right: I notice two issues:

  • you forgot the equal-sign ("=") to assign your literal array to the variable.
  • the challenge asks for an array of numbers, but enclosing them in quotes makes them strings.

thank you!