javascript file:
var danger = 1;
var safe = 2;
function stepLeft() {
if (danger == 1) {
alert("STOP!")
} else {
alert("START!")
}
}
Nothing is happening when I try this. No error message in console either. (the script is linked properly in html).