Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29644
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-02-21 09:51 -0800 |
| Message-ID | <b99c7479-d78d-4e99-b6e7-c3e6d2010e6c@googlegroups.com> (permalink) |
| Subject | (Sort of) newbie trying to understand "array.length" |
| From | bit-naughty@hotmail.com |
Well OK, I'm not really a Newbie, been reading my JS book for a while now, and puzzling over some of the stuff..... - can someone explain to me what "array.length" or "array.map" etc. is? Like, "array" is a reserved word which comes with the system (Firefox or whatever), right? And "length" is a property of it? ie. "array" is an object?
Like, in BASIC, if a$ is "dog" then LEN a$ will be "3", a child of 10 can understand that...... in PHP I think it's "strlen", but in *JS*, _why_ did they do things this way? Why give us something with a dot in it, to make life harder for everyone? To *my* mind, array-dot-something should be what's INSIDE that array, like a subscript, just like a dot after an object literal ("x.d") means what's INSIDE that object literal, but that's not what they did..... subscripts are [ and ] (big brackets)..... the whole thing is just confuzzling me, can anyone explain....?
Thanks.
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
(Sort of) newbie trying to understand "array.length" bit-naughty@hotmail.com - 2016-02-21 09:51 -0800
Re: (Sort of) newbie trying to understand "array.length" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-21 23:48 +0100
Re: (Sort of) newbie trying to understand "array.length" Scott Sauyet <scott.sauyet@gmail.com> - 2016-02-25 06:24 -0800
Re: (Sort of) newbie trying to understand "array.length" John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-22 11:03 +0000
Re: (Sort of) newbie trying to understand "array.length" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-02-22 12:23 +0000
Re: (Sort of) newbie trying to understand "array.length" Aleksandro <aleksandro@gmx.com> - 2016-02-22 11:57 -0300
Re: (Sort of) newbie trying to understand "array.length" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-22 21:19 +0100
Re: (Sort of) newbie trying to understand "array.length" "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-02-23 11:22 +0100
Re: (Sort of) newbie trying to understand "array.length" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 20:50 +0100
Re: (Sort of) newbie trying to understand "array.length" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-02-23 11:20 +0100
csiph-web