JavaScript Error Help: “SyntaxError: expected expression, got ‘<'"
-
I have a JS error on my website: “SyntaxError: expected expression, got ‘<‘.” I’m not sure where the error is in the JS, but I’ll list the code below.
<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/6ffb692bbc9bc8d1cc7f34f90/9f6c7507346cce16096c5da30.js");</script>
Other helpful information…
:: The browsers that you are experiencing the problem in: Chrome and Firefox.
:: Whether SCRIPT_DEBUG fixed the error or not: I’m not sure what I’d even remove in the code.
:: The JavaScript error: SyntaxError: expected expression, got ‘<‘.
:: The location of the error – both the file name and the line number: The file name is “/my_custom_script.js,” and in that file, it’s all on one line, so line number 1.
:: The context of the error – including the whole error stack will help developers: I’m not sure.Thanks for any help you can deliver.
The page I need help with: [log in to see the link]
- The topic ‘JavaScript Error Help: “SyntaxError: expected expression, got ‘<'"’ is closed to new replies.