JSFiddle - React, Tailwind, and code Playground

by TheBuzzer

JavaScript

var strTest1 = "../test1/test2/test3/test.php";
var x = strTest1.split("/");
alert(x[(x.length-1)]);