Smiley-Cartoons / Happy-Burgers

Happy burgers is not your typical battle royale game. Instead of goblins and knights, you attack your opponent with burgers. That's right, burgers. You are tasked with the mission of defending yourself against the rival restaurant across the street. This game is completely free. So may the best burger commander win!
2 stars 0 forks source link

JS error q+a #13

Open Moybot2000 opened 3 years ago

Moybot2000 commented 3 years ago

everythign works but the js file everytime i click it it says syntax error could you get back to me on why its not working all of a sudden

AndreBacic commented 3 years ago

1) Which js file? There are two: boards.js and site.js. 2) Are you running index.html and then the browser says syntax error, or are you running just the js file? 3) What does the entire error say? What code changes have you made? (When you ask for help from any other programmer, it is polite to provide the full error message and as many relevant details as possible. A lot of people get yelled at for only saying, "pls help I have an error")

4) Syntax error basically means, 'the characters you used to write your code are incorrect.' For example, you may have omitted a closing bracket or have used an undeclared variable. Syntax errors are usually really easy to solve because if you're using a code editor (I recommend using https://jsfiddle.net/ or installing VS Code, but just about any would do) then it will put a red squiggly line under the bad syntax. Also, in the browser's dev tools the source file should have a giant red line under line of code with the bad syntax. W3schools I believe has a page on JS syntax if you want to see what rules you might be violating. Many other sites have the same info but W3 usually presents it concisely.

AndreBacic commented 3 years ago

Blast it the js fiddle link auto includes the github url. Sorry about that. Just copy & paste https://jsfiddle.net/ into another window and it'll take you there.

AndreBacic commented 3 years ago

Ok now that link works what is wrong with this website?