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: Sun, 11 Aug 2019 17:50:21 +0200 Lines: 22 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 SWRmmlxDAwyCZtoAi31igQ5Kya6cTQiC89034f/jzOKBa2YGNR Cancel-Lock: sha1:6jEy9LmphL9zzl9mdWrwRU2ugVY= Openpgp: preference=signencrypt In-Reply-To: Xref: csiph.com comp.lang.javascript:37094 R.Wieser: > Evertjan, > >> you should NEVER use "this" as a variable >> in the receiving function: > > Its good that you want to warn about wrong/risky usage, but please do add an > explanation. Without it the warning itself wil most likely be forgotten > rather quickly (I know it does with me). "this" is a keyword with a special meaning. > And yes, I'm interrested. What makes "this" so special that you should not > use it as a (local!) argument variable there ? -- Arno Welzel https://arnowelzel.de