Skip to content

DOCUMENT NOT FOUND ERROR IN DOM-PIG-GAME #97

@p98nikku

Description

@p98nikku

//this is the code that i used but it is showing error and not working and i am not able to find out the error.Can you please help me with @jonasschmedtmann
//the number of current -0 is not changing at all
var scores, roundScore, activePlayer, dice;
scores = [0, 0];
roundScore = 0;
activePlayer = 0;

dice = Math.floor(Math.random() * 6) + 1;
document.querySelector('#current-' + activePlayer).textContent = dice;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions