Code AnalysisBeginner 60s
Trace: Reverse Loop
What is the result?
Starter code
const arr=[1,2,3,4];
const rev=[];
for(let i=arr.length-1;i>=0;i--){rev.push(arr[i])}
console.log(rev[0])Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.