Merge pull request 'develop' (#12) from develop into master

Reviewed-on: #12
This commit is contained in:
PATRICK DE SOUZA SILVA 2022-11-02 21:18:09 +00:00
commit 80b7f78b55
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
export function greet(name) { export function greet(name) {
// implementar logica aqui // implementar logica aqui
return ""; return `Hello ${name}`;
} }

View File

@ -1,12 +1,12 @@
export function longestWords(words) { export function longestWords(words) {
// implementar logica aqui // implementar logica aqui
const lengthArray = [] const lengthArray = []
words.forEach(element => { words.forEach(element => {
lengthArray.push([element, element.length ]) lengthArray.push([element, element.length])
}) })
let res = ['', 0] let res = ['', 0]
lengthArray.forEach(array => { lengthArray.forEach(array => {