javascript how to add to a list code example
Example 1: js array add element
array.push(element)
Example 2: javscript append item from array
let foo = ['oop','plop','copo'];
foo.push("plop");
Example 3: javascript append array to end of array
const new_array = old_array.concat([value1[, value2[, ...[, valueN]]]])