forked from M3-Academy/challenge-algorithms-v2.0
feat: resolve funcão greet
This commit is contained in:
parent
c6f6df9c59
commit
2dfd633655
@ -1,4 +1,10 @@
|
||||
export function greet(name) {
|
||||
// implementar logica aqui
|
||||
return "";
|
||||
let hello;
|
||||
if (name)
|
||||
hello = 'Hello ' + name;
|
||||
else
|
||||
hello = 'Adicione um nome na funcão';
|
||||
|
||||
return hello;
|
||||
}
|
Loading…
Reference in New Issue
Block a user