For some reason, this function is working properly. The terminal is outputting newbootstrap.sh: 2: Syntax error: "(" unexpected Here is my code (line 2 is function MoveToTarget() {) #!/... Discover offers online banking, reward credit cards, home equity loans, and personal loans to help meet your financial needs.

Understanding the Context

Register your Discover Credit Card, Banking, Home Loan, Student Loan or Personal Loan account for online access. Learn more about Discover credit cards and apply for the best one for you, whether you need cash back, miles, a student credit card or a secured credit card. You're logged out We weren't sure if you left, so we logged you out of Discover.com to keep your account safe. Activate your new Discover card quickly and easily online to start enjoying its benefits.

Key Insights

Add Yahoo as a preferred source to see more of our stories on Google. Aurora city officials discovered a leak in one of the city’s major water pipes over the holidays, an issue complicated by its ... One other gotcha that can result in "SyntaxError: Unexpected token" exception when calling JSON.parse() is using any of the following in the string values: New-line characters. Same problem here; bat script: ... produces "f was unexpected at this time." I'm an old Unix csh script/regex guy, so this new syntax is tripping me up.

Final Thoughts

That means when we reach 3, the start of a new string using double quotes, it's an unexpected string. You probably want: ... At 1, we start the string. 2 is just a " within the string, it doesn't end it. 3 ends it, then we append checkval, then we start a new string (4) with a " in it (5) followed by a ] and then the end of the string (6).