Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Can somebody explain this code Date: Sun, 27 Mar 2016 22:44:11 +0200 Organization: PointedEars Software (PES) Lines: 19 Message-ID: <3457976.2eFHA4iNFV@PointedEars.de> References: <2380128.LjnWGdRavf@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1459111452 16184 eJwNykkBACAIBMBMgCwYh7N/BJ33qIBQdqA4urqRywzUxoVD2nqth/5xduoICbTPMFtV5n0uuhH5 (27 Mar 2016 20:44:12 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 27 Mar 2016 20:44:12 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBACAIA8BKvFPioLL+EbxLh+KuQCKSSWqvK27dY9DhSNe2VabEgwtQh6zYp3zXk+hDSQyDbcn+VoAVzQ== Cancel-Lock: sha1:RzVk4RaK+qZ9ElH1XKg0txx4ONE= X-NNTP-Posting-Host: eJwFwQkRADAIAzBNdLQ75DAe/xKW8MhU10U5lwv4dpp6kMzlsY6SJlyPfNXpiRkg0EbVBylqEYc= Xref: csiph.com comp.lang.javascript:30119 Aleksandro wrote: > On 24/03/16 16:30, Thomas 'PointedEars' Lahn wrote: >> var myFunc; >> myFunc = function () { alert("This is my anonymous function"); }; >> >> (In that case, “myFunc” is assigned the “undefined” value first.) > > Would the VM actually assign undefined first? I doubt it. On what grounds? >> -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.