JSFiddle - React, Tailwind, and code Playground

JavaScript

var tt = '1~This is from form one';
var t1 = tt.slice(0,1);
var t2 = tt.slice(2);

alert('t1: [' +t1+ ']   t2: [' +t2+ ']');