JSFiddle - React, Tailwind, and code Playground

JavaScript

console.log('states'.slice(0,-1));