0
Is there something wrong with the sololearn compiler?
This was supposed to be a rock paper scissors game .I made it in visual studio and it worked perfectly fine. No errors , no nothing. I wanned to post it on sololearn to see what people think about it so i copyed and paste the whole code on the sololearn compiler. But for some reason it's not working. There can't be something wrong with the code because it works just fine on visual studio https://code.sololearn.com/WgGh18N3Vu2w/#
2 Antworten
0
The compiler says there is a error on lines 7 & 8.
0
Replace <script src="index.js"></script> with
<script>
//Your JS
</script>
Or wrap your js with a window.onload function like this
window.onload = function(){
//Your JS
}