JSFiddle - React, Tailwind, and code Playground by maharajan a November 28, 2021 JavaScript var test=[1,2,3,4] var test1=test.slice(); console.log(test === test1)