how to not splice javascript mutate code example
Example 1: how to push into array javascript without mutating
const newArray = array.contact(newItem);
Example 2: function mutate The Array(n, a)
function mutateTheArray(n, a)
const newArray = array.contact(newItem);
function mutateTheArray(n, a)