CodingJS String-2 -- wordEnds Javascript solution

Published --