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])
|
||||
})
|
||||
|
||||
|
||||
let res = ['', 0]
|
||||
|
||||
lengthArray.forEach(array => {
|
||||
|
Loading…
Reference in New Issue
Block a user