Memory Game - images not loading in Javascript

const cardArray = [
{
name: ‘fries’,
img: ‘images/fries.png’
},
{
name: ‘cheeseburger’,
img: ‘images/cheeseburger.png’
},
{
name: ‘ice-cream’,
img: ‘images/ice-cream.png’
},
{
name: ‘pizza’,
img: ‘images/pizza.png’
},
{
name: ‘milkshake’,
img: ‘images/milkshake.png’
},
{
name: ‘hotdog’,
img: ‘images/hotdog.png’
},
{
name: ‘fries’,
img: ‘images/fries.png’
},
{
name: ‘cheeseburger’,
img: ‘images/cheeseburger.png’
},
{
name: ‘ice-cream’,
img: ‘images/ice-cream.png’
},
{
name: ‘pizza’,
img: ‘images/pizza.png’
},
{
name: ‘milkshake’,
img: ‘images/milkshake.png’
},
{
name: ‘hotdog’,
img: ‘images/hotdog.png’
}
]

None of these images load

The images directory is in the same folder as everything else and I can do img src just fine in html so I’m not sure what the issue is. Thanks in advance.

You are going to have to give us more information than this. Preferably a link to your project in github.

https://github.com/billybob20051/memo
Heres the link.

Not finding that project in your repo.

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