Path: csiph.com!.POSTED.204-73-239-109.cust.centrio.cz!not-for-mail From: Cezary Tomczyk Newsgroups: comp.lang.javascript Subject: Re: why the ! operator can be used to determine a string is null? Date: Wed, 9 Aug 2017 09:26:23 +0200 Organization: csiph.com Internet News Service Message-ID: References: <1939054.irdbgypaU6@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 9 Aug 2017 07:26:24 +0000 (UTC) Injection-Info: csiph.com; posting-host="204-73-239-109.cust.centrio.cz:109.239.73.204"; logging-data="114"; mail-complaints-to="admin@kev009.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: Content-Language: en-GB Xref: csiph.com comp.lang.javascript:33723 On 09/08/2017 06:20, Julio Di Egidio wrote: > On Tuesday, August 8, 2017 at 11:20:26 PM UTC+2, Thomas 'PointedEars' Lahn wrote: [...] >> Second, the function call `prompt()` is actually the method call >> `window.prompt()` and should always be written so. > > Nah, that's just a bit of your misplaced dogmatism. That's not dogmatism, but a practical and good advice to use full reference to a method. Time ago I wrote article about that: http://www.ctomczyk.pl/js-tip-always-use-full-reference/282/ -- Cezary Tomczyk http://www.ctomczyk.pl/