join()Explanation: The join() method combines all array elements into a single string. You can specify a separator.
let fruits = ["apple", "banana", "cherry"];
console.log(fruits.join(", ")); // "apple, banana, cherry"
let numbers = [1, 2, 3];
console.log(numbers.join("-")); // "1-2-3"
let letters = ["a", "b", "c"];
console.log(letters.join("")); // "abc"
splice()Explanation: The splice() method changes the contents of an array by removing, replacing, or adding elements at a specific index.
let numbers = [1, 2, 3, 4, 5];
numbers.splice(2, 2);
console.log(numbers); // [1, 2, 5]
let fruits = ["apple", "banana", "cherry"];
fruits.splice(1, 1, "kiwi");
console.log(fruits); // ["apple", "kiwi", "cherry"]
let animals = ["dog", "cat"];
animals.splice(1, 0, "rabbit");
console.log(animals); // ["dog", "rabbit", "cat"]
flat()Explanation: The flat() method flattens a nested array into a single array.