Answers for "for loop with :"

6

java for

for(int i=0; i<10; i++){	//creates a counting vatiable i set to 0
  							//as long as i is < 10 (as long the condition is true)
  							// i is increased by one every cycle
//do some stuff
}
Posted by: Guest on June-01-2020
0

Function with FOR loop

function countToFive() {
  let firstFive = "12345";
  let len = firstFive.length;
  // Fix the line below
  for (let i = 0; i < len; i++) {
    // Do not alter code below this line
    console.log(firstFive[i]);
  }
}
Posted by: Guest on April-21-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language