JSFiddle - React, Tailwind, and code Playground JavaScript var url = "http://localhost:8080/show/myplace/"; console.log(url.split('/'));