From 250b90ed39f329495b57f666c313b841f6317b05 Mon Sep 17 00:00:00 2001 From: Jefferson Mariano de Souza Date: Sat, 1 Oct 2022 22:25:22 -0300 Subject: [PATCH] Happy birthday in typescript --- examples/happyBirthday.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/happyBirthday.ts diff --git a/examples/happyBirthday.ts b/examples/happyBirthday.ts new file mode 100644 index 0000000..6977123 --- /dev/null +++ b/examples/happyBirthday.ts @@ -0,0 +1,7 @@ +function happyBirthday(name: string): string { + const hb = 'Happy birthday'; + + return `${hb} ${name}!`; +} + +console.log(happyBirthday('John Doe'));