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


Groups > comp.lang.javascript > #25025

Re: What does x.y.z mean?

From Gregor Kofler <usenet@gregorkofler.com>
Newsgroups comp.lang.javascript
Subject Re: What does x.y.z mean?
Date 2014-06-25 21:41 +0200
Organization A noiseless patient Spider
Message-ID <lof8kj$ork$1@dont-email.me> (permalink)
References <a93c4421-8f80-4f76-ab42-a034af382a20@googlegroups.com>

Show all headers | View raw


Am 2014-06-25 19:33, bit-naughty@hotmail.com meinte:
> I always had this figured out:

Copying the question into the message body is smart?

> x is an object, of which y is a method that returns an object itself, and z is a property or method of *that* object - am I right in this?

No. This would be x.y().z
>
>
> Also, what happens in the case of an object literal?

What should "happen"?

> Is y an object inside x, and z an object inside y? Or am I completely mistaken?

y and z are properties, which values in turn can be objects. In the 
above example y is assumed to hold an object.

Gregor

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