mercredi 8 juillet 2020

what to put in if to check same color of backgrounds? [closed]

var clicktimes = 2;
    for(i=0; i<clicktimes; i++){
        if(?){
            $(this).css("background", "white")
    }

im trying to make game "memory" and now i need to know what to put in if to check if "flipped" cards' backgrounds have the same color. (bg-whuite is for disappearing)

Aucun commentaire:

Enregistrer un commentaire