Making an attempt to teach coding to kids. I am trying to create a layer of abstraction over javascript just to simplify the syntax for the kids.
I think it will be a bit overwhelming for a kid to learn a typical while loop
Is there any way to convert
var i = 0
while(i<10)
{
doThis();
doThat()
i++
}
into something easier like this
repeat(10)
{
doThis();
doThat();
}
Thanks