JSFiddle - React, Tailwind, and code Playground

by ronnjoe

HTML

<div id="box1">
sfdsfsfsf
<div id="box2">
fsfdsf
<div id="box3">
ddssfdsfs
</div>
</div>
</div>
<div id="content">

</div>

<div id="test">

</div>

JavaScript 1.7

var index,
length = 10;
console.log(this);
for (index = 0; index <length; index++) {

console.log("-");
console.log(this.length);
"this"
/*
* Removed setTimeout function as this will wait for 10 milliseconds before proceeding and
in the meantime index value will become 10 which will in turn prints ten times 10
*/
//console.log(index);
}