Last active
December 17, 2019 13:48
-
-
Save sidvishnoi/066d33b996c775b85add361392b2265d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("hey"); | |
// There is a space before the first line, which is not renderered by many | |
// IDEs/text editors. | |
// | |
// It bit me once when I copied a snippet from some site, and they added | |
// (probably accidentally; evil otherwise) a zero-width space before every line | |
// of code. The code failed to compile saying "unexpected token", but it took me | |
// quite some time to understand what just happened. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can run above as:
I promise I didn't add any zero-width space in above snippet