JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects Create an Array of Objects

Alexandru Pescaru
Alexandru Pescaru
4,561 Points

please help

what am i doing wrong?

script.js
var objects = [
  { 
    name:'dave', 
    number: 50, 
    hair: 'black' },
  {
    name:'dae', 
    number: 50, 
    hair: 'black' },
  {
    name:'da', 
    number: 50, 
    hair: 'black' }

  ];
index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JavaScript Objects</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

1 Answer

Steven Parker
Steven Parker
202,031 Points

The instructions say that "Each object should have two property/value pairs".

But each of these objects has three property/value pairs.