Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
// Code your solutions in this file
const writeCards = (array,event) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const writeCards = (array,event) => {
const writeCards = (array, event) => {

const birthdayMessages = [];
for(let name of array){
birthdayMessages.push(`Thank you, ${name}, for the wonderful ${event} gift!`);
}
return birthdayMessages;
}

const countDown = (num) => {
while(num >= 0){
console.log(num);
num--;
}
}