JSFiddle - React, Tailwind, and code Playground by pierian_design June 06, 2022 JavaScript let arr = [1, 2, 3, 4]; console.log(arr.splice(0, 1));