Skip to content
Advertisement

Syntax error: missing ) after the argument list?

JavaScript

Syntax error: ) missing after the argument list?

Advertisement

Answer

You are missing quotes in the HTML. Both the close ” for the onclick attribute, and you need to wrap your parameter in single quotes to make it a string:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement