<?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"
	>
<channel>
	<title>Comments on: JavaScript and the Semicolon</title>
	<atom:link href="http://trevorpowell.com/2008/03/20/javascript-and-the-semicolon/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevorpowell.com/2008/03/20/javascript-and-the-semicolon/</link>
	<description>Trevor Powell. An online experiment in web standards, internationalization, and localization.</description>
	<pubDate>Thu, 20 Nov 2008 21:19:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Trevor</title>
		<link>http://trevorpowell.com/2008/03/20/javascript-and-the-semicolon/#comment-258</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 21 Mar 2008 00:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://trevorpowell.com/2008/03/20/javascript-and-the-semicolon/#comment-258</guid>
		<description>Rewrite the function expression in there as a statement and it works!

&lt;pre&gt;&lt;code&gt;function fn(){console.log("hi");}a=2;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Rewrite the function expression in there as a statement and it works!</p>
<pre><code>function fn(){console.log("hi");}a=2;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: joy</title>
		<link>http://trevorpowell.com/2008/03/20/javascript-and-the-semicolon/#comment-257</link>
		<dc:creator>joy</dc:creator>
		<pubDate>Thu, 20 Mar 2008 22:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://trevorpowell.com/2008/03/20/javascript-and-the-semicolon/#comment-257</guid>
		<description>Not having a semicolon after a function statement is ok as long as you have a newline. In a situation where we compress a js file for savings of space, using a program like yui compressor, it can cause errors. For example, try this on firebug console:

&lt;pre&gt;&lt;code&gt;fn=function(){console.log("hi");}a=2;&lt;/code&gt;&lt;/pre&gt;

this will show an error.

Insert a semicolon after } and it will work fine.</description>
		<content:encoded><![CDATA[<p>Not having a semicolon after a function statement is ok as long as you have a newline. In a situation where we compress a js file for savings of space, using a program like yui compressor, it can cause errors. For example, try this on firebug console:</p>
<pre><code>fn=function(){console.log("hi");}a=2;</code></pre>
<p>this will show an error.</p>
<p>Insert a semicolon after } and it will work fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
