Contact: aviboots(AT)netvision.net.il
39,974 questions
51,918 answers
573 users
let arr = [1, 2, 3, 4, 5, 6, 7, 8]; arr.reverse(); console.log(arr); /* run: [ 8, 7, 6, 5, 4, 3, 2, 1 ] */