JSFiddle - React, Tailwind, and code Playground

by gchoken

JavaScript

var name = "one.two.three";

var output = name.split('.');

alert(output[1]);