JSFiddle - React, Tailwind, and code Playground by maharajan a November 01, 2021 JavaScript const a=[1,2,3,4] a.splice(0,2) console.log(a)