Ask coding questions

← Back to all posts
1
SyntaxErrors - Any have any advice ?
ChristianSierra (0)

Does anyone have any suggestions on why my code keeps coming back as

SyntaxError: Invalid or unexpected token
SyntaxError: missing ) after argument list

https://default--christiansierra.repl.co

Commentshotnewtop
1
CBlockSurprise (16)

The first error comes from the Facebook Pixel Code (line 39). The second one comes from the document.writeln (line 66). On line 66, try replacing the document.writeln with this:

document.writeln('<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/trid=2232259383476396&ev=PageView&noscript=1"/></noscript>');

I'm not sure of a fix for line 39. Maybe change the email and others to an object before, and add then it may work? Or don't have it on multiple lines? Hopefully, that would fix it.

Awesome site though!