Archive:Debugging challenges: Difference between revisions
| Line 150: | Line 150: | ||
== Challenge Set 3 - Execution Errors == | == Challenge Set 3 - Execution Errors == | ||
Execution errors | Execution errors occur when the program has the correct syntax and lexicon, but you're making the wrong requests to get the results you desire. | ||
1 | 1 | ||
| Line 179: | Line 179: | ||
} | } | ||
</script> | |||
3 | |||
<script type=text/javascript> | |||
document.write("Show the factorials from 1 to 10") | |||
for (i=1,fact=1;i<11;i++,fact*=i); | |||
{ | |||
document.write(i+"!="+fact+"<br>") | |||
} | |||
</script> | </script> | ||