subject

Var nums = [1,1, 2, 3, 5, 8, 13, 21]; var copyNums = [1,1, 2, 3, 5, 8, 13, 21];
for(var i=0; i < copyNums. length; i++){
if(copyNums[i] == 1){
insertItem(copyNums, i,"hello");
}
}
This code will create an infinite loop. Why does it create an infinite loop?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
When you type january in a cell, then copy it using the fill handle to the cells below and the data automatically changes to february, march, april, and so on, what is this feature called? auto fill automaticcopy monthfill textfill
Answers: 1
You know the right answer?
Var nums = [1,1, 2, 3, 5, 8, 13, 21]; var copyNums = [1,1, 2, 3, 5, 8, 13, 21];
for(var i=0;...
Questions
Questions on the website: 13722367