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

Seth Alexander
Seth Alexander
3,503 Points

I'm confused on this.

I'm confused on this, I don't understand.

script.js
var data = [1, 2, 3];
var assorted = ["1", true, false];
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

Ben Reynolds
Ben Reynolds
35,167 Points

In the challenge instructions, it says "Assign one string value, a number and a Boolean value.."

At the moment you have a string (since the number is in quotes) and two booleans.

Seth Alexander
Seth Alexander
3,503 Points

Thank you, I got thanks to you!