Making an extension for every JavaScript exclusive feature I can think of!

Not being able to set the start value in blocks is kinda annoying, I will admit…
Though I will say, I agree that technically I can’t implement full For loop use in blocks, as the initialization, incrimination, and main body can all technically have any code you want in them. The check area can just be a Boolean input though, which works fine. And yeah, technically people could just use a While loop, but what’s the fun in that?!?

2 Likes

I like teaching students how to express a counter-driven for() loop as a while() loop to show an example of how a while() loop is supposed to be written:

  • Determine your control variable.
  • Initialize the control variable before entering the loop.
  • Use the control variable in the conditional expression.
  • Alter the value of the control variable within the loop.
1 Like