javascript add item to array using spread operator code example
Example: addition in spread operator in javascript
let numberStore = [0, 1, 2];
let newNumber = 12;
numberStore = [...numberStore, newNumber];
let numberStore = [0, 1, 2];
let newNumber = 12;
numberStore = [...numberStore, newNumber];