Issue
Trying to make a loop that shows all the numbers in 3 times multiplication table, from 0 to 999. Every time I "launch" the .html with the script everything crashes.
<script>
for (var i = 0; i <=999; i+3 ) {
console.log(i);
}
</script>
Chrome freezes, and after a few seconds, it says that the tab isn't responding and it just dies.
!!!!!!!!!!!!!!!! Found out about it. Missed a "=" between i+ and 3.
Solution
<script>
for (var i = 0; i <=999; i=i+3 ) {
console.log(i);
}
</script>
Answered By - Nidhi Patel Answer Checked By - Mildred Charles (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.