0

Syntax error

It says this code has a syntax error even though I followed a tutorial. It was supposed to be like the dinosaurs game on google https://code.sololearn.com/Wgx0mH47Kx1U/?ref=app

4th Feb 2022, 12:57 PM
Matthew Evans
1 Réponse
+ 1
Matthew Evans I don't think you followed tutorial properly What is the purpose of this line: <html>lang="en" onclick='jump()'> Did you check syntax? Here should be && instead of %% if(blockLeft<20 && blockLeft>0 %% charaterTop>=130){
4th Feb 2022, 4:22 PM
A͢J
A͢J - avatar