Single quotes in JavaScript object literal

Posted by stone on Stack Overflow See other posts from Stack Overflow or by stone
Published on 2010-05-07T11:41:57Z Indexed on 2010/05/07 11:58 UTC
Read the original article Hit count: 283

Filed under:
|

I'm looking at the Google Maps API tutorial, and I see this:

<script type="text/javascript" 
        src="http://www.google.com/jsapi?autoload={'modules':[{name:'maps', version:3, other_params:'sensor=false'}]}"></script>

Why is modules wrapped in single quotes?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html