challenge-algorithms-v2.0-M.../01-greeting/index.js

8 lines
269 B
JavaScript

export function greet(name) {
// implementar logica aqui
return "Hello " + name
}
console.log(greet("Maria"), "Hello Maria")// hello Maria
console.log(greet("Alvin"), "Hello Alvin")// hello Alvin
console.log(greet("Pedro Lucas"), "Hello Pedro Lucas")// Pedro Lucas