Code Wars: Shortest Word

preview_player
Показать описание
Github JS file Link:

Рекомендации по теме
Комментарии
Автор

can you tell me a way to find the shortest sentence among the sentences input by user

himanshupathirana
Автор

When you set the shortest word = to infinity - is infinity just a word? Why don't it work with another word? It works with numbers, I can set shortest to 1 or any number or range of numbers but not to word. Why is that?

Elator