JSFiddle - React, Tailwind, and code Playground by lollero November 15, 2019 JavaScript var array = [1,2,3]; var n = 1; --n; array.splice( n, 1);