Your issue is the fact that the i
in functіon
is the Unicode character U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
. If you change it to a ‘normal’ i
it should just work.
But now I’m wondering how the hack 🙂 did you get a Cyrillic character there 😛
More Related Contents:
- “Uncaught SyntaxError: Unexpected token , ” when create my object javascript
- What is the character code for enter? [closed]
- Sending UTF-encoded POST request [duplicate]
- No visible cause for “Unexpected token ILLEGAL”
- Concrete JavaScript regular expression for accented characters (diacritics)
- Decode UTF-8 with Javascript
- Remove zero-width space characters from a JavaScript string
- JavaScript strings outside of the BMP
- How to remove emoji code using javascript?
- \u200b (Zero width space) characters in my JS code. Where did they come from?
- Why does a module level return statement work in Node.js?
- How to find the unicode of the subscript alphabet?
- Programatic Accent Reduction in JavaScript (aka text normalization or unaccenting)
- Insert Unicode character into JavaScript
- Match any non-word character (excluding diacritics)
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Matching accented characters with Javascript regexes
- Converting punycode with dash character to Unicode
- Uncaught SyntaxError: Unexpected token u in JSON at position 0
- Javascript unicode string, chinese character but no punctuation
- Javascript string comparison fails when comparing unicode characters
- JavaScript remove ZERO WIDTH SPACE (unicode 8203) from string
- JavaScript: SyntaxError: missing ) after argument list
- Converting unicode character to string format
- In what JS engines, specifically, are toLowerCase & toUpperCase locale-sensitive?
- Regular Expression for Japanese characters
- javascript and string manipulation w/ utf-16 surrogate pairs
- Why this regex is not working for german words?
- Writing UTF8 text to file
- How to replace non-printable unicode characters (Javascript)