Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #38952

Re: How can I make “i” from a main loop reflect the times that an inner loop inside that main loop runs

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: How can I make “i” from a main loop reflect the times that an inner loop inside that main loop runs
Date Wed, 14 Oct 2020 23:45:15 +0100
Organization A noiseless patient Spider
Lines 17
Message-ID <87y2k8qves.fsf@bsb.me.uk> (permalink)
References <1660ec09-67d0-4224-b1b4-0a14023ae98dn@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
Injection-Info reader02.eternal-september.org; posting-host="deb11149bd21e87ca76219d17c479d7e"; logging-data="25400"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6Qd+MCBq/vGnZ2+bfs/Pl/6ihMpFB4Bw="
Cancel-Lock sha1:sN5XwSygUWlWd1gmwUL/wzmrSgw= sha1:nrlQ++OUHLBr6/8TAsRRZBZkzO0=
X-BSB-Auth 1.40c88756f6a6c1a0d27f.20201014234515BST.87y2k8qves.fsf@bsb.me.uk
Xref csiph.com comp.lang.javascript:38952

Show key headers only | View raw


Diego Leonardo Robayo bernal <dr2882@columbia.edu> writes:
<cut>
> Find the code here:
>
> https://stackoverflow.com/questions/64357143/how-can-i-make-i-from-a-main-loop-reflect-the-times-that-an-inner-loop-inside

You'll get better answers if you post the code here.  Try, also, to cut
the example down.

> How can I make the i in the main loop to reflect the times that the
> loop inside typeDelay(i) ran.

I think you have a bigger problem: the "main loop" is likely to have
finished before any of the code triggered by setTimeout even runs.

-- 
Ben.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How can I make “i” from a main loop reflect the times that an inner loop inside that main loop runs Diego Leonardo Robayo bernal <dr2882@columbia.edu> - 2020-10-14 13:34 -0700
  Re: How can I make “i” from a main loop reflect the times that an inner loop inside that main loop runs Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-14 23:45 +0100
  Re: How can I make “i” from a main loop reflect the times that an inner loop inside that main loop runs JJ <jj4public@gmail.com> - 2020-10-15 11:26 +0700
  Re: How can I make “i” from a main loop reflect the times that an inner loop inside that main loop runs Julio Di Egidio <julio@diegidio.name> - 2020-10-15 07:47 -0700
    Re: How can I make “i” from a main loop reflect the times that an inner loop inside that main loop runs Diego Leonardo Robayo bernal <dr2882@columbia.edu> - 2020-10-16 12:38 -0700

csiph-web