What is the difference between 2 code (loop for javascript) ?
<script>
for(x=0;x<5;x++)
{
alert(x);
}
</script>
AND
<script>
for(x=0;x<5;++x)
{
alert(x);
}
</script>
i tested the result will be same.
But in w3school advice like this
for(x=0;x<5;x++)
Could you please tell me. i can use for(x=0;x<5;x++)
and for(x=0;x<5;++x)
too ?