Uncaught ReferenceError: Cannot access "man' before initialization
ошибка в коде не функция проверяет прикосновение двух элементов, но выдается ошбка
Uncaught ReferenceError: Cannot access 'player' before initialization
setInterval(function(){
let man = parseInt(window.getComputedStyle(player).getPropertyValue("top"))
let obj = parseInt(window.getComputedStyle(rock).getPropertyValue("left"))
if(player<50 && rock<80){
alert("Game Over")
}
},10)