Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: NEVER use "this" as a variable Re: Is the input type ID passed as a parameter onChange? If not how can i achieve it. Date: Wed, 14 Aug 2019 17:25:42 +0200 Lines: 25 Message-ID: References: <7289e763-fc8c-4686-8f68-12094ee06440@googlegroups.com> <7fc94d37-a44c-43a0-bb81-b9116f9d20fa@googlegroups.com> <0c7e3cae-3c01-4ca8-a2e9-db004a2de1b8@googlegroups.com> <05dbfbb6-648f-4cbf-89e6-7fb1d1e3b44e@googlegroups.com> <25a5b812-2599-492a-856c-b052f9024d4d@googlegroups.com> <26c701d7-cb23-44f2-9ca2-b4c30b888030@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net CeXmfnhCo6yDRVcGsC1H7A/6KlThT2JWniMUNVD3X3voKKI/DM Cancel-Lock: sha1:Axm4SndOBDxh57gDJDyiWxdW0+Y= In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.javascript:37136 On 14.08.19 10:23, R.Wieser wrote: > Arno, > >> The difference is, that "this", "document" and "window" >> name an *existing* object and "that" not. > > Exactly that. And AFAICT thats the /only/ difference. So what? > I rather go with the generic rule that global variable name re-use should > not be a common thing to do as opposed to give a few "special" names undue > attention. I know you refuse to learn to understand - but "this" is *not* always a global variable! That's why I said: just don't use "this" as a variable name - even if you don't understand why. If you want to understand, than you have to learn. -- Arno Welzel https://arnowelzel.de