Commit 6c5885b6 authored by MohammadAli Keshavarz's avatar MohammadAli Keshavarz

learning how to change style in java script

parent fe2867c0
......@@ -16,5 +16,9 @@ dice = Math.floor(Math.random() * 6) + 1;
document.querySelector("#current-" + activePlayer).textContent = dice;
// document.querySelector("#current-" + activePlayer).innerHTML = "<h1>" + dice + "</h1>";
var x = document.querySelector("#score-1").textContent;
console.log(x);
//-----------------------------------------------------------------
// var x = document.querySelector("#score-1").textContent;
// console.log(x);
document.querySelector(".dice" ).style.display = "none";
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