Quote:
Originally Posted by stepk
Note that I reversed the role of single and double quotes!
|
No, thanks. I enjoy my double quotes in JavaScript code.
(Just a joke. However, double quotes are syntactically valid in JavaScript, so remembering to avoid or to escape them could be mentally painful.)
EDIT: just realized that my original code didn't handle single quotes in JavaScript as expected. Fixed.