In the line I have commented below, does the value of the array that has "element" as a value get overridden by array?
let c = [1, 2];
console.log(`c = ${c}`);
add(c, 3);
console.log(`c = ${c}`);
function add(array, element) {
array = [element]; // Is this Array that has "element" as a value overridden by array
}