Programming Tips - javaScript: append two arrays together

Date: 2022dec16 Language: javaScript Q. javaScript: append two arrays together A. Use concat(). Be aware that it makes a new array.
const top = [1,2]; const bottom = [3,4]; const combined = top.concat(bottom); console.log('combined=' + JSON.stringify(combined));
Outputs:
combined=[1,2,3,4]