---
title: "Comment by Chris Bongers on \"Copying JavaScript object and arrays\" | Hashnode"
description: "You can also use the three dot method const arr = [ 0 , 2 , 3 , 4 , 5 ]; const arrCopy2 = [...arr]; console .log(arrCopy2);"
url: "https://hashnode.com/posts/copying-javascript-object-and-arrays/5f05e3d931045715ed6deda2/comment/5f06d19325e7571fbcdfcef5"
---

[Discussion](https://hashnode.com/posts/copying-javascript-object-and-arrays/5f05e3d931045715ed6deda2)

Comment [Copying JavaScript object and arrays](https://hashnode.com/posts/copying-javascript-object-and-arrays/5f05e3d931045715ed6deda2)

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Jul 9, 2020](https://hashnode.com/posts/copying-javascript-object-and-arrays/5f05e3d931045715ed6deda2/comment/5f06d19325e7571fbcdfcef5)

You can also use the three dot method

```
const arr = [0,2,3,4,5];
const arrCopy2 = [...arr];
console.log(arrCopy2);
```
