View Single Post
Old 01-23-2013, 03:06 AM   #112
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by stepk View Post
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.

Last edited by eureka; 01-23-2013 at 03:49 AM.
eureka is offline   Reply With Quote