Contact: aviboots(AT)netvision.net.il
39,892 questions
51,823 answers
573 users
let arr: number[] = [9, 444, 3, 7, 0, 2, 1, 8, 6]; [arr[1], arr[6]] = [arr[6], arr[1]]; console.log(arr); /* run: [9, 1, 3, 7, 0, 2, 444, 8, 6] */