Answers for "reverse function in arry"

PHP
55

javascript reverse array

var arr = [34, 234, 567, 4];
print(arr);
var new_arr = arr.reverse();
print(new_arr);
Posted by: Guest on November-16-2019
0

Using the reverse method to Reverse an Array

var arr = [1,2,3,4];
arr.reverse();
console.log(arr);
Posted by: Guest on April-09-2022

Browse Popular Code Answers by Language