Answers for "invert order elments array js"

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
3

js array reverse

const arr = [34, 234, 567, 4];
console.log(arr);
const new_arr = arr.reverse();
console.log(new_arr);
Posted by: Guest on April-10-2021

Browse Popular Code Answers by Language