Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1.  
  2. const arrOne = [1, 2, 3];
  3. const arrTwo = [...arrOne, 4];
  4. console.log(arrOne, arrTwo);
  5. // [1, 2, 3] [1, 2, 3, 4]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement