longestWords
This commit is contained in:
parent
a46216dfad
commit
4fee33a764
@ -1,5 +1,5 @@
|
|||||||
export function longestWords(words) {
|
export function longestWords(words) {
|
||||||
let longest = '';
|
var longest = '';
|
||||||
|
|
||||||
for (const word of words) {
|
for (const word of words) {
|
||||||
if (word.length > longest.length) {
|
if (word.length > longest.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user