JSFiddle - React, Tailwind, and code Playground
JavaScript
function reverseArray(arr) {
let newArr = [];
for(let i=0; i<arr.length; i++){
// Fill in the missing line here
}
return newArr;
}
console.clear();
console.log(reverseArray([2,3,4,5]));