diff --git a/examples/happyBirthday.js b/examples/happyBirthday.js new file mode 100644 index 0000000..291d830 --- /dev/null +++ b/examples/happyBirthday.js @@ -0,0 +1,8 @@ +function happyBirthday(name) { + const firstWord = ['H', 'A', 'P', 'P', 'Y']; + const secondWord = ['B', 'I', 'R', 'T', 'H', 'D', 'A', 'Y']; + + return `${firstWord.join()} ${secondWord.join()} ${name}!`; +} + +console.log(happyBirthday('nice person'));