Real Basics of Loops :: How the 'for loop' works in JavaScript
for (initialization; condition; afterthought)
statement
initialization is first executed.
and then it goes to condition part and if is true
now it goes into statement part
After executing all the statements
it goes to afterthought
And then g...
seongjin.hashnode.dev1 min read