_:nf509453867764904a2c6488bdd1ff89bxb2
<http://schema.org/text>
"<p><a href=\"https://en.coderslang.com/d/154/3\" class=\"PostMention\" data-id=\"628\" rel=\"\" target=\"\">Kevo</a> the problem is in the loop:</p>\n<pre><code class=\"language-js\">for(i=n;i&lt;arr.length;i--) {\n...\n}</code><script async=\"\" crossorigin=\"anonymous\" data-hljs-style=\"github\" integrity=\"sha384-vbylffRV+sn4FL7ftwAw6eJ1uNcsQT3ETMpPJQZaOtzW+0d+jnlf1LJj9Jgf8Scp\" src=\"https://cdn.jsdelivr.net/gh/s9e/hljs-loader@1.0.31/loader.min.js\"></script></pre>\n<p>Consider a situation where the string length is 5, n is 3 and there are no spaces in the string.</p>\n\n<p>Will this loop ever break?</p>"
<https://en.coderslang.com/d/154-task-145-shortenbywords>