Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Syntax error: Unexpected Number

OtakuMom
OtakuMom

https://repl.it/@OtakuMom/IST113-19S-LI-Final
Okay, so I'm working on my final for my Web Programming class, and this has me kind of stumped. The message I'm getting is "Syntax Error: Unexpected number" on line 14, and being new to Javascript I don't know what that means. If anyone can help it would be greatly appreciated.

4 years ago
You are viewing a single comment. View All
1
TheDrone7
TheDrone7

@OtakuMom
create a function which contains the code that you'll be executing when the HTML element is clicked then, in the HTML file, go-to the element that you want to make interactive and set it's onclick attribute to call the function that you have created.

4 years ago