node.js push to array patch code example Example: js array push const arr = ["foo", "bar"]; arr.push('baz'); // 3 arr; // ["foo", "bar", "baz"]