Skip to content

Commit

Permalink
Update greet.js
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbit[bot] <7+coderabbit[bot]@users.noreply.github.coderabbit.ai>
  • Loading branch information
yashcoderabbit and coderabbit[bot] committed May 29, 2025
1 parent 754b4ae commit 0fc725c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions greet.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export function generateGreeting(name, type) {
return `Greetings, ${name}`;
} else if (type === "casual") {
return `Hey ${name}!`;
} else {
return `Hello, ${name}`;
}
}

Expand Down

0 comments on commit 0fc725c

Please sign in to comment.