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/#

26th Mar 2020, 6:48 PM
Andrei I
Andrei I - avatar
2 Respostas
0
The compiler says there is a error on lines 7 & 8.
26th Mar 2020, 7:28 PM
Byron Fausset
Byron Fausset - avatar
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 }
26th Mar 2020, 7:50 PM
Ore
Ore - avatar