develop #12
@ -1,4 +1,4 @@
|
||||
export function greet(name) {
|
||||
// implementar logica aqui
|
||||
return "";
|
||||
return `Hello ${name}`;
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
export function longestWords(words) {
|
||||
// implementar logica aqui
|
||||
|
||||
const lengthArray = []
|
||||
|
||||
words.forEach(element => {
|
||||
lengthArray.push([element, element.length ])
|
||||
lengthArray.push([element, element.length])
|
||||
})
|
||||
|
||||
|
||||
let res = ['', 0]
|
||||
|
||||
lengthArray.forEach(array => {
|
||||
@ -24,4 +24,4 @@ export function longestWords(words) {
|
||||
})
|
||||
|
||||
return AllLongestWords
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user