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


Groups > comp.lang.javascript > #25095

Re: What does x.y.z mean?

From John Harris <niam@jghnorth.org.uk.invalid>
Newsgroups comp.lang.javascript
Subject Re: What does x.y.z mean?
Date 2014-06-27 09:52 +0100
Organization A noiseless patient Spider
Message-ID <t2cqq9lirisjr70l1isouogagdosar68js@4ax.com> (permalink)
References <a93c4421-8f80-4f76-ab42-a034af382a20@googlegroups.com> <lof8kj$ork$1@dont-email.me> <60580b8d-8eb2-48cd-abe7-1fab43493571@googlegroups.com> <su8oq913mss8eimrsnf5t3ha2vkm0tlqk9@4ax.com>

Show all headers | View raw


On Thu, 26 Jun 2014 14:47:04 +0100, John Harris
<niam@jghnorth.org.uk.invalid> wrote:

>On Thu, 26 Jun 2014 06:25:50 -0700 (PDT), bit-naughty@hotmail.com
>wrote:
>
>>On Thursday, June 26, 2014 1:11:07 AM UTC+5:30, Gregor Kofler wrote:
>>> y and z are properties, which values in turn can be objects. In the 
>>> 
>>> above example y is assumed to hold an object.
>>> 
>>
>>Right, so what does "y.z" mean then?
>>
>>And that brings me back to my original question - what is x.y.z?
>
>  x.y.z 
>means exactly the same as
>  x["y"]["z"]
>by definition.

If that doesn't help, then work it out this way :

  var a = x.y;
  var b = a.z;

The second line will go BANG! if a is not [aka is not a reference to]
an object.

  John

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


Thread

What  does x.y.z mean? bit-naughty@hotmail.com - 2014-06-25 10:33 -0700
  Re: What  does x.y.z mean? Gregor Kofler <usenet@gregorkofler.com> - 2014-06-25 21:41 +0200
    Re: What  does x.y.z mean? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-26 11:09 +0200
    Re: What  does x.y.z mean? bit-naughty@hotmail.com - 2014-06-26 06:25 -0700
      Re: What  does x.y.z mean? John Harris <niam@jghnorth.org.uk.invalid> - 2014-06-26 14:47 +0100
        Re: What  does x.y.z mean? John Harris <niam@jghnorth.org.uk.invalid> - 2014-06-27 09:52 +0100
  Re: What  does x.y.z mean? Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-27 09:46 +0000

csiph-web