Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Trying to understand OOP (newbie to OOP) Date: Wed, 14 Dec 2016 22:07:54 +0100 Organization: PointedEars Software (PES) Lines: 26 Message-ID: <1873389.OBFZWjSADL@PointedEars.de> References: <71f4511f-db38-48ba-82cb-939e378a8553@googlegroups.com> <08064429-d134-4a46-b3c2-8a895bcba5fc@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1481749674 26751 eJwFwYEBACAEBMCVCv8yjtD+I3QH5Wa5ETQ8vJfpoJvs6nuZHTFxV0rBpjG6MCLWc85RrvotiRFj (14 Dec 2016 21:07:54 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 14 Dec 2016 21:07:54 +0000 (UTC) User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 14.12.2016 at 18:33, bit-naughty@hotmail.com wrote: >> So - I'm going with the first answer to my reply - is that information >> correct? i.e "e" is an object, "style" is an object inside it, and >> "fontSize" is a property of THAT object.....? > > Why don't you verify that yourself? In a browser it might be as simple > as: > > console.log(e, e.style, e.style.fontSize); Partial ACK. Modern browsers have script consoles that allow one to inspect referred objects there even in the output of the console.log() method. However, the simplified way in which this is presented might actually enforce the misconception of a beginner that objects would reside inside other objects, and that property accessors were merely a way to “reach deeper inside” an object. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.