Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25556
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Images and pdf in a div |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | (8 earlier) <3966722.Cq8BDrRF97@PointedEars.de> <XnsA37149E4C23C3eejj99@194.109.133.133> <lqr8hk$ibg$1@dont-email.me> <XnsA374B517C957Deejj99@194.109.133.133> <0.a05d769fd7d52c58503d.20140724223222BST.87vbqmbfyx.fsf@bsb.me.uk> |
| Date | 2014-07-24 23:58 +0200 |
| Message-ID | <XnsA374F3EA19B3Deejj99@194.109.133.133> (permalink) |
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote on 24 jul 2014 in
comp.lang.javascript:
> "Evertjan." <exxjxw.hannivoort@inter.nl.net> writes:
> <snip>
>> It could be [I did not think of it] that:
>>
>> var i = 0, plugins = navigator.plugins, len = plugins.length
>>
>> implicitly vars all 3, like it does in a simple statement.
>
> Yes, that's what the ECMA language specification says should happen.
>
>> That could or could not be true, I see no way of testing that,
>> because of the forhiving behavour of js implementations?
>
> (function () {
> for (var i = 0, j = 0; i < 1; i++);
> })();
> console.log(typeof i, typeof j);
>
> You should see i and j undefined after the function execution. If you
> remove the "var", you will see that both i and j are now shown as
> "number". If the var applied to only one, you would see "undefined" and
> "number".
tnx.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Images and pdf in a div danca <cyberdanny@tiscalinet.it> - 2014-07-19 00:31 +0200
Re: Images and pdf in a div "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-07-19 13:34 +0200
Re: Images and pdf in a div danca <cyberdanny@tiscalinet.it> - 2014-07-19 15:34 +0200
Re: Images and pdf in a div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-07-19 15:51 +0200
Re: Images and pdf in a div danca <cyberdanny@tiscalinet.it> - 2014-07-19 18:30 +0200
Re: Images and pdf in a div Andrew Poulos <ap_prog@hotmail.com> - 2014-07-20 15:23 +1000
Re: Images and pdf in a div Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-20 12:42 +0200
Re: Images and pdf in a div danca <cyberdanny@tiscalinet.it> - 2014-07-20 20:07 +0200
Re: Images and pdf in a div Andrew Poulos <ap_prog@hotmail.com> - 2014-07-21 14:10 +1000
Re: Images and pdf in a div danca <cyberdanny@tiscalinet.it> - 2014-07-21 14:19 +0200
Re: Images and pdf in a div Andrew Poulos <ap_prog@hotmail.com> - 2014-07-21 08:14 +1000
Re: Images and pdf in a div Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-21 02:00 +0200
Re: Images and pdf in a div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-07-21 07:15 +0200
Re: Images and pdf in a div Osmo Saarikumpu <osmo@weppipakki.com> - 2014-07-24 18:26 +0300
Re: Images and pdf in a div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-07-24 17:48 +0200
Re: Images and pdf in a div Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-07-24 22:32 +0100
Re: Images and pdf in a div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-07-24 23:58 +0200
Re: Images and pdf in a div "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-07-24 18:40 +0200
Re: Images and pdf in a div Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-25 12:31 +0200
Re: Images and pdf in a div John Harris <niam@jghnorth.org.uk.invalid> - 2014-07-25 15:52 +0100
csiph-web