JSFiddle - React, Tailwind, and code Playground JavaScript var p="This is text without a period, Wha.t now?"; var p2=p.splice(); alert(p[3]);