Truncate a string to a certain number of words | Javascript Exercise | practise code

Published --