Memory game based on pure js - not working

Hi,

I created simple memory game.
Code goes here: https://jsbin.com/nojabazebo/edit?html,css,js,output.
The game should:

  • match pairs and add green border color,
  • if doesn’t match, add red color, and hide after one second - show back of the card

Why this is not working? Can you help me?
Thank you.

Hi,

This:

squere.style.borderColor = '1px solid green';

should be:

squere.style.border = '1px solid green';

Because you haven’t implemented this logic. You just have a comment where this should be.

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