Menu
Hi evrybody, i am new to JavaScript, I am trying to disply from 1 to 30 skipping the ones from 17 to 23 (included).
I came up with the following code:
<script type=”text/javascript”>
var number = 1
for (index=0;index<30;index++){
if (((number+=index)>16) && ((number+=index)<=23)){
document.write((index+1)+ “. Skipping”);
document.write(“<BR>”);
}else{
document.write((index+1)+”. “+(number+=index));
document.write(“<BR>”);
}
}
</script>
Thank u in advance