Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35152

Re: Output not defined

Path csiph.com!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.180.224.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Output not defined
Date Fri, 01 Jun 2018 19:10:15 +0200
Organization PointedEars Software (PES)
Lines 17
Message-ID <2024553.5UXlKB6UDy@PointedEars.de> (permalink)
References <d47e4fde-edba-4108-913c-f5902b538935@googlegroups.com> <XnsA8F47B210D5E6eejj99@194.109.6.166> <d2efe184-3334-47d6-84a1-f92291819f2b@googlegroups.com> <XnsA8F481BFF2A81eejj99@194.109.6.166> <0f701b52-56fa-4318-b045-06682c46a6a9@googlegroups.com> <87bmcuwiqe.fsf@bsb.me.uk>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
Injection-Info gwaiyur.mb-net.net; posting-host="180.224.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch:178.197.224.180"; logging-data="29689"; mail-complaints-to="abuse@open-news-network.org"
User-Agent KNode/4.14.2
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Cancel-Lock sha1:U6trsvx4UzbpkY9uiNGfYRE408g=
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
X-User-ID U2FsdGVkX1+kD7YCE6Rq2f7sX6WgZWF4vaaHm0ztgsZch03x5/9i5A==
Xref csiph.com comp.lang.javascript:35152

Show key headers only | View raw


Ben Bacarisse wrote:

> Jonas Thörnvall <jonas.thornvall@gmail.com> writes:
>> No i thought if i put var output; in main as global, how could it not
>> be defined further down the chain, because it says undefined.
> 
> You may be confusing output having the value undefined, and the concept
> of a name having no binding.  When a name can't be resolved (maybe
> because the programmer forgot to write "var output;") a ReferenceError
> is raised. […]

Only either on *read* access or in *strict* mode.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 00:10 -0700
  Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-01 12:06 +0200
    Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 03:33 -0700
      Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-01 12:45 +0200
        Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 03:49 -0700
          Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-01 12:57 +0200
          Re: Output not defined Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-06-01 17:54 +0100
            Re: Output not defined Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-06-01 19:10 +0200
            Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 10:53 -0700
            Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 13:24 -0700
              Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 07:42 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 07:57 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 07:59 -0700
                Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-02 18:05 +0200
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:19 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:28 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:36 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:49 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 11:06 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 11:18 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:43 -0700
                Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-02 22:44 +0200
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 04:36 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 04:53 -0700
                Re: Output not defined John G Harris <niam@jghnorth.org.uk.invalid> - 2018-06-03 15:06 +0100
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 11:01 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 11:09 -0700
  Re: Output not defined Jake Jarvis <pig_in_shoes@yahoo.com> - 2018-06-01 15:03 +0200
    Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 10:49 -0700

csiph-web