Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const arrOne = [1, 2, 3];
- const arrTwo = [...arrOne, 4];
- console.log(arrOne, arrTwo);
- // [1, 2, 3] [1, 2, 3, 4]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement