Question: 6. Fix the broken code, provide comment(s) as to what was wrong with the original code: for(let i=0; i > 5; i++) { console.log(i) }
6. Fix the broken code, provide comment(s) as to what was wrong with the original code:
for(let i=0; i > 5; i++)
{ console.log(i) }
function addIfEven(num)
{ if(num % 2 = 0) { return num + 5 }
function loopToFive()
{ for(let i=0, i < 5, i++) { console.log(i) }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
