Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Object equals other object Date: Tue, 17 Sep 2019 10:45:53 +0200 Lines: 44 Message-ID: References: <6fcd7ab4-a730-4522-9aa5-6f2f1a2b0b69@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net DgFR4/ih91kKqWHRCBz2twFIlK8vDPHKjOMsS11wRFryJmE5iJ Cancel-Lock: sha1:pPpeeuQ3btAC1A7usPOa0cI1BrQ= In-Reply-To: <6fcd7ab4-a730-4522-9aa5-6f2f1a2b0b69@googlegroups.com> Content-Language: en-US Xref: csiph.com comp.lang.javascript:37285 On 16.09.19 11:21, Julio Di Egidio wrote: [...] > More generally, you guys should try and get your head around the fact that JS > is NOT an object-oriented language, not by any sensible stretch: and then many > things become at least clearer. "18 The Global Object" "19 Fundamental Objects 19.1 Object Objects 19.1.1The Object Constructor The Object constructor: is the intrinsic object %Object%. is the initial value of the Object property of the global object. creates a new ordinary object when called as a constructor. performs a type conversion when called as a function rather than as a constructor. is designed to be subclassable. It may be used as the value of an extends clause of a class definition." Hmmm... at least the specification is then quite confusing if the language is not object oriented. And even classes exist since ECMAScript 2015: So why should one consider JavaScript *not* object oriented? -- Arno Welzel https://arnowelzel.de