I want to break a string into two lines, but the line should not break into two, at the half of a word. How can I do this?
The string format is like this:
var words="value.eight.seven.six.five.four.three" Expected output is:
"value.eight.seven. six.five.four.three"