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

I don’t understand what i am doing wrong ?

const monsters=[{
  name:"slime",
  level:2,
  health:15
},
{
  name:"fanged beast"
  level:8,
  health:60
},
{
  name:"dragon",
  level:20,
  health:300
}];

check your code button is kind of not working , it doesn’t give the message "sorry your code doesn’t pass " either.
Challenge link

hi! @TTEOTM

Can u provide link to the challenge?

check that all your properties and objects complete with a comma before listing another one

1 Like

Hello @TTEOTM

const monsters = [
  {
    name: "",
    level: any val,
    health: any val
  },
  {
    name: "",
    level: any val ,
    health: any val
  },
  {
    name: "",
    level: any val,
    health: any val
  }
]
1 Like

Also, enable the console so that we get to see the error messages.

image

image

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.