Today I was reminded that an innocent-looking apostrophe inside a string can break the entirety of a javascript file.

‘I am a string. That’s great!” <-- Wrong.
'I am a string. That\'s great!" <-- Right.

That is all. : (

</span>

blog comments powered by Disqus
  • Hi, I'm Linda! I enjoy going to tech meetups, learning web development, and blogging about the learning path. Follow me @LPnotes

Subscribe to The Coding Diaries