<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- OPML generated by OPML Editor v11.0.6 on Thu, 09 Feb 2012 14:46:07 GMT -->
<opml version="2.0">
	<head>
		<title>JavaScript is nice, but weird</title>
		<dateCreated>Thu, 09 Feb 2012 14:40:26 GMT</dateCreated>
		<dateModified>Thu, 09 Feb 2012 14:46:07 GMT</dateModified>
		<ownerName>Dave Winer</ownerName>
		<ownerEmail>dave.winer@gmail.com</ownerEmail>
		<expansionState>1</expansionState>
		<vertScrollState>1</vertScrollState>
		<windowTop>180</windowTop>
		<windowLeft>773</windowLeft>
		<windowBottom>1312</windowBottom>
		<windowRight>1912</windowRight>
		</head>
	<body>
		<outline created="Thu, 09 Feb 2012 14:40:26 GMT" ctSaves="5" flPreview="false" id="2012.02.09.1644" server="xmlrpc://cms.scripting2.com:5337/RPC2" storySerialNum="1644" text="JavaScript is nice, but weird" type="scripting2Post" url="http://scripting.com/stories/2012/02/09/javascriptIsNiceButWeird.html" username="davewiner" versionClient="0.44" versionServer="0.44" whenLastSave="Thu, 09 Feb 2012 14:46:08 GMT">
			<outline created="Thu, 09 Feb 2012 14:36:28 GMT" pgfnum="12609" text="I've been slowly learning JavaScript over the last few months, and just got bit by something that I think is a mistaken design. I bet it's bit everyone for whom it's not their first Algol-like language."></outline>
			<outline created="Thu, 09 Feb 2012 14:37:12 GMT" pgfnum="12610" text="The problem came up with an image that had an &quot;undefined&quot; src property. "></outline>
			<outline created="Thu, 09 Feb 2012 14:45:51 GMT" pgfnum="12617" text="I could see it was undefined in Firebug. When the &lt;a href=&quot;http://worknotes.scripting.com/february2012/2912ByDw/test/ahaIBelieveIFoundTheProblem/&quot;&gt;page&lt;/a&gt; loads it's not not undefined. I click on it, and boom it loses its definition. How could that be. "></outline>
			<outline created="Thu, 09 Feb 2012 14:41:59 GMT" pgfnum="12614" text="Well, you could have assigned it an undefined value. Let's look for an assignment. &lt;a href=&quot;http://scripting.com/images/2012/02/09/assignment.gif&quot;&gt;Found it&lt;/a&gt;."></outline>
			<outline created="Thu, 09 Feb 2012 14:43:16 GMT" pgfnum="12615" text="Search on Google. Aha. The &lt;a href=&quot;http://javascriptweblog.wordpress.com/2010/08/16/understanding-undefined-and-preventing-referenceerrors/&quot;&gt;weirdness&lt;/a&gt;. You can call a function with fewer parameters than it defines. The unspecified parameters are (ta dahh) undefined. "></outline>
			<outline created="Thu, 09 Feb 2012 14:39:32 GMT" pgfnum="12611" text="Even C, the most laissez-faire language in AlgolLand doesn't allow this!"></outline>
			<outline created="Thu, 09 Feb 2012 14:39:49 GMT" pgfnum="12612" text="Once I knew what I was looking for I found it right off, fixed it, and all is good. :-)"></outline>
			<outline created="Thu, 09 Feb 2012 14:45:15 GMT" pgfnum="12616" text="Adventures in programming with Uncle Davey. "></outline>
			</outline>
		</body>
	</opml>
