_:nf509453867764904a2c6488bdd1ff89bxb21
<http://schema.org/text>
"<p>there's the spelling of length in your code<br>\nalso in the if statement in your <code>for</code> loop, you used <code>s</code>, instead of <code>s[i]</code>, which I'm guessing you meant.<br>\nHave you already tried these corrections?<br>\nWithout these errors though, it looks like your code will return <code>s</code> whenever it encounters a character that isn't space, and <code>s.length&gt;n</code>.</p> \n"
<https://en.coderslang.com/d/154-task-145-shortenbywords>