Commit fd968a97 authored by MohammadAli Keshavarz's avatar MohammadAli Keshavarz

learning how to use innerHTML

parent 2cd8e2d4
...@@ -15,3 +15,4 @@ activePlayer = 0; ...@@ -15,3 +15,4 @@ activePlayer = 0;
dice = Math.floor(Math.random() * 6) + 1; dice = Math.floor(Math.random() * 6) + 1;
document.querySelector('#current-' + activePlayer ).textContent = dice; document.querySelector('#current-' + activePlayer ).textContent = dice;
// document.querySelector("#current-" + activePlayer).innerHTML = "<h1>" + dice + "</h1>";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment