0
What is this error!😩
6 ответов
+ 4
"%" means that it is a string, compare
"%" vs. %
+ 1
Did you mean "%"?
+ 1
And I think your call to monster() needs to be inside of the onload function
0
Yeah
0
Didn't change.
0
window.onload = () => {
document.getElementById("shootb").addEventListener("click", shoot)
monster();
};
and add functions are outside onload
also
document.getElementById("monster"+num).style.top= ran+"%"; // use as string.
edit:
looks like just last change is enough...🙁
strange SL ..