Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: setInterval Date: Mon, 06 Feb 2017 21:12:36 +0000 Organization: A noiseless patient Spider Lines: 21 Message-ID: <87poivc9bv.fsf@bsb.me.uk> References: <6cb902b0-8913-4b65-954d-5d9f0e60ee95@googlegroups.com> <4cbfae02-e217-436d-8c41-004de444915c@googlegroups.com> <8e741582-e2a8-4713-b49d-6bd5a50a8317@googlegroups.com> <87h947e7f5.fsf@bsb.me.uk> <82f4ba9f-8d80-4769-842a-5a9b066efb5a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="e1e0fd4e52276e6740cb2f8d0e2af98c"; logging-data="12871"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eVi4RfkvKl6ekbgw/vUYnAU6AoADFE1k=" Cancel-Lock: sha1:+EL3T6wJJn964od3UvCdJNAXAwc= sha1:OZCh9u7oIkxvj4Urhuxba9cTM1I= X-BSB-Auth: 1.7436e52e20eb9f81c4e4.20170206211236GMT.87poivc9bv.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:32508 jonas.thornvall@gmail.com writes: > Den måndag 6 februari 2017 kl. 15:11:07 UTC+1 skrev Ben Bacarisse: >> jonas.thornvall@gmail.com writes: >> >> >> > > > > Den måndag 6 februari 2017 kl. 08:26:45 UTC+1 skrev >> > jonas.t...@gmail.com: >> >> >> > > > > > var interval_1 = setInterval("COUNTDOWN();",1000); >> I'm surprised that works. The first argument of setInterval should be a >> function not a string. > > Well it seem you are right Ben, No, apparently a string *is* permitted there though you really should use the more usual function argument. -- Ben.