Path: csiph.com!news.mixmin.net!weretis.net!feeder4.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.200.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Object oriented programming Date: Tue, 09 Jan 2018 02:45:45 +0100 Organization: PointedEars Software (PES) Lines: 28 Message-ID: <12742935.DMliEloatx@PointedEars.de> References: <3c2333ff-00fe-4087-ab49-f52d0546b29b@googlegroups.com> <5d1ca5ad-55c3-43b5-b3d0-617e3150355e@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Info: gwaiyur.mb-net.net; posting-host="200.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch:178.197.226.200"; logging-data="10104"; mail-complaints-to="abuse@open-news-network.org" User-Agent: KNode/4.14.2 X-User-ID: U2FsdGVkX19Ed0MXgblAS0nXgzqNenzBkDiP4IaLFvyhXIIcs6qmlA== X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. That fits well to Object.prototype.create() […] For reasons that should be obvious, “create” is _not_ a property of the object referred to by “Object.prototype”. So it is “Object.create()” instead. The more recent introduction of a lot of helper methods that are properties of built-in functions that can be called as functions or constructors (which can replace several custom workarounds devised earlier), which would be called “static methods” in other OOP languages (and may also be in ECMAScript implementations at some point, now that there can be proper classes) is one reason why it becomes increasingly important to not speak of, for example, “Object.prototype.toString()” as “Object.toString()”, which (probably for technical reasons) even MDN has not fully managed to fix yet (but I have said and done for years now). ,- | | Object.prototype.toString() | | […] -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.