<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: JavaScript Arrays: The Difference Between [] and {&#160;}</title> <atom:link href="http://davidwalsh.name/javascript-arrays-brackets-braces/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/javascript-arrays-brackets-braces</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 15:40:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Mantasha Zaara</title><link>http://davidwalsh.name/javascript-arrays-brackets-braces/comment-page-1#comment-13327</link> <dc:creator>Mantasha Zaara</dc:creator> <pubDate>Thu, 05 Nov 2009 20:05:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=257#comment-13327</guid> <description>Thanks DavidU solved my problem. I am first time using Javascript in my website and i was getting one problem with one line.mycarousel_itemList[counter]=
[{url: &quot;ID,&#039;thumbnail&#039;, true); ?&gt;&quot;,link: &quot;&quot;,title: &quot;&quot;}]
;and u solved it ... thanks again...regards</description> <content:encoded><![CDATA[<p>Thanks David</p><p>U solved my problem. I am first time using Javascript in my website and i was getting one problem with one line.</p><p> mycarousel_itemList[counter]=<br
/> [{url: "ID,'thumbnail', true); ?&gt;",link: "",title: ""}]<br
/> ;</p><p>and u solved it &#8230; thanks again&#8230;regards</p> ]]></content:encoded> </item> <item><title>By: Rasmus</title><link>http://davidwalsh.name/javascript-arrays-brackets-braces/comment-page-1#comment-1431</link> <dc:creator>Rasmus</dc:creator> <pubDate>Sun, 01 Jun 2008 01:25:14 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=257#comment-1431</guid> <description>I feel like you&#039;re missing one of the finer points in this bracket/brace post; braces define Objects - not Arrays!The following are essentially the same:var myArray = [];
var myArray = new Array();... as are:var myObject = {};
var myObject = new Object();Javascript is by no means perfect - so you&#039;ll have to know the pitfalls, like erroneously mixing keys and indexes in an Array (like you can do in PHP - bad).
As javascript doesn&#039;t have associative arrays Objects are the closest thing.</description> <content:encoded><![CDATA[<p>I feel like you&#8217;re missing one of the finer points in this bracket/brace post; braces define Objects &#8211; not Arrays!</p><p>The following are essentially the same:</p><p>var myArray = [];<br
/> var myArray = new Array();</p><p>&#8230; as are:</p><p>var myObject = {};<br
/> var myObject = new Object();</p><p>Javascript is by no means perfect &#8211; so you&#8217;ll have to know the pitfalls, like erroneously mixing keys and indexes in an Array (like you can do in PHP &#8211; bad).<br
/> As javascript doesn&#8217;t have associative arrays Objects are the closest thing.</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/javascript-arrays-brackets-braces/comment-page-1#comment-1413</link> <dc:creator>david</dc:creator> <pubDate>Fri, 30 May 2008 13:43:52 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=257#comment-1413</guid> <description>@Tim:  That&#039;s what I get from it.  Please let me know if I&#039;m wrong.</description> <content:encoded><![CDATA[<p>@Tim:  That&#8217;s what I get from it.  Please let me know if I&#8217;m wrong.</p> ]]></content:encoded> </item> <item><title>By: Tim Novinger</title><link>http://davidwalsh.name/javascript-arrays-brackets-braces/comment-page-1#comment-1412</link> <dc:creator>Tim Novinger</dc:creator> <pubDate>Fri, 30 May 2008 13:38:14 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=257#comment-1412</guid> <description>This is interesting. So if you use []&#039;s in a key=&gt;value array it just won&#039;t work or it&#039;s simply improper usage?I must admit, I&#039;ve wondered this myself with the MOO as they seem to have pretty creative looking code conventions (that really make a lot of sense).</description> <content:encoded><![CDATA[<p>This is interesting. So if you use []&#8216;s in a key=&gt;value array it just won&#8217;t work or it&#8217;s simply improper usage?</p><p>I must admit, I&#8217;ve wondered this myself with the MOO as they seem to have pretty creative looking code conventions (that really make a lot of sense).</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/11 queries in 0.007 seconds using disk: basic
Object Caching 475/476 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 11:02:24 -->
