JSFiddle - React, Tailwind, and code Playground by gchoken August 18, 2011 JavaScript var name = "one.two.three"; var output = name.split('.'); alert(output[1]);