JSFiddle - React, Tailwind, and code Playground

by Vasilii Chugunov

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]));