I keep getting the error code “use script” not defined.
I know this needs adding but I don’t know where to put it. Can anyone help please? The problem is with the IF statement. I am new to Java and know this is to do with the new version but I don’t know what to do. Please help!
var playing = false;
var score;
//if we click on the start/reset
document.getElementById("startreset").onclick = function(){
//if we are playing
if(playing == true){
location.reload(); //reload page
}else{//if we are not playing
//change mode to playing
playing = true;
//set score to 0
score = 0;
document.getElementById("scorevalue").innerHTML = score;
//show countdown box
document.getElementById("timeremaining").style.dis play = "block";
//change button to reset
document.getElementById("startreset").innerHTML = "Reset Game";
}
}