I'm really struggling how to split the text at the closest string to the 47th character. How is this done?
var fulltext = document.getElementById("text").value;
var a = fulltext.slice(0, 47);
console.log(a);
var b = fulltext.slice(47, 47*2);
console.log(b);
var c = fulltext.slice(94, 47*3);
console.log(c);
Here is a JS Fiddle - http://jsfiddle.net/f5n326gy/5/
Thanks.
var fulltext = 'my text here directly and keep us focus directly on your problem'