Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <139484623.PyJ8SnIKrL@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 14 Mar 2014 01:08:25 +0100 User-Agent: KNode/4.11.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 23 NNTP-Posting-Date: 14 Mar 2014 01:08:29 CET NNTP-Posting-Host: e7689280.newsspool1.arcor-online.net X-Trace: DXC=W_OR4[mGY:@=8m7nZkdN^@ic==]BZ:afN4Fo<]lROoRAnkgeX?EC@@@:B3KFXJVReBDZm8W4\YJNLYUVHKH;GI^Gb2AEPH863SNNY_d;0fc0?D X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:23598 Stefan Ram wrote: > "Joey@still_Learning.invalid" writes: >> This seems to work, but adding the 'var' prefix throws an error, i.e., >> 'var window.variable = value' throws "Syntax error while loading: >> expected ';', got '.'" > > »var« declares a (new) /variable/. > > »window.variable =« adds a /property/ to the window object, > or sets the value of a window property. A very important difference indeed. Many newcomers think the “window” property is a built-in identical to the global object when it is in fact a host-defined context-dependent property referring to a host object that happens to be in the scope chain in that host environment for historical reasons. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not Cc: me. / Bitte keine Kopien per E-Mail.