JSFiddle - React, Tailwind, and code Playground by Joe Saad September 19, 2018 JavaScript const p = "2.1.3" alert(p.split('.')[0]+'.'+p.split('.')[1])