Title: JavaScript Error Help: &#8220;SyntaxError: expected expression, got &#8216;&lt;&#039;&quot;
Last modified: March 28, 2019

---

# JavaScript Error Help: “SyntaxError: expected expression, got ‘<'"

 *  [kasy.allen](https://wordpress.org/support/users/kasyallen/)
 * (@kasyallen)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/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.
    -  This topic was modified 7 years, 1 month ago by [kasy.allen](https://wordpress.org/support/users/kasyallen/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-help-syntaxerror-expected-expression-got%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-help-syntaxerror-expected-expression-got/#post-11367935)
 * That seems to have something do do with a popup form.
 * If it’s legit file (which I doubt), you can disable all plugins then turn them
   back on, one at a time, to see which might be associated with it.
 * On the other hand, you have probably been hacked. Get a fresh cup of coffee, 
   take a deep breath and carefully follow [this guide](https://wordpress.org/support/article/faq-my-site-was-hacked/).
   When you’re done, you may want to implement some (if not all) of [the recommended security measures](https://wordpress.org/support/article/hardening-wordpress/).
 * If you’re unable to clean your site(s) successfully, there are reputable organizations
   that can clean your sites for you. Sucuri and Wordfence are a couple.
 *  [Pete Moore](https://wordpress.org/support/users/techmystressaway/)
 * (@techmystressaway)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-help-syntaxerror-expected-expression-got/#post-11368266)
 * chimpstatic.com is a mailchimp domain do you have some kind of mailchimp pop 
   form
 *  Thread Starter [kasy.allen](https://wordpress.org/support/users/kasyallen/)
 * (@kasyallen)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-help-syntaxerror-expected-expression-got/#post-11385051)
 * I Googled it too and found that chimptastic.com is part of MailChimp. I wasn’t
   using any of their pop-up forms, but was using an extension so that MailChimp
   would work with Contact7. I tried turning off all of the plugins and turning 
   them on one-by-one, but that didn’t get rid of the error either. I then deleted
   that file altogether and it’s still showing up for me – odd. I’ll give it a day
   and see if it clears itself up.
 * Thanks!
    -  This reply was modified 7 years, 1 month ago by [kasy.allen](https://wordpress.org/support/users/kasyallen/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘JavaScript Error Help: “SyntaxError: expected expression, got ‘<'"’ is
closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [syntaxerror](https://wordpress.org/support/topic-tag/syntaxerror/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [kasy.allen](https://wordpress.org/support/users/kasyallen/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-help-syntaxerror-expected-expression-got/#post-11385051)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
