Answers for "using for loop"

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
0

for loop

for i in range(20)
	print(i)
Posted by: Guest on February-03-2022

Python Answers by Framework

Browse Popular Code Answers by Language