JSFiddle - React, Tailwind, and code Playground

by lollero

JavaScript

var array = [1,2,3];
var n = 1;
--n;
array.splice( n, 1);