Report question

Question: Shorten string without cutting words in JavaScript