Learn Basic JavaScript by Building a Role Playing Game - Step 81

Tell us what’s happening:

It is telling me that I should have four values and that they should be four objects. I have this, but it is telling me that it needs four values in the array? I’m pretty sure I have those.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const weapons = [
  {
  name: "stick",
  power: 5;
 },
 {
  name: "dagger",
  power: 30
 },
 {
  name: "claw hammer",
  power: 50
 }, 
 {
  name: "sword",
  power: 100
 }
];

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 81

Try removing the semicolon here

1 Like

ok, thanks Ill try that

yup it worked! thanks!

1 Like