Hello !
I had created a conditional statement to put the lesson into practice.
In the result I would have liked the ‘else’ output to return ‘date + birthday’.
But, I have not learned yet.
I tried to add get date = new Date () in console.log but it does not work!
Thank you for your help, it’s just for learning !
let birthdayCake = ‘birthday cake’;
if (birthdayCake === ‘In January,It is my birthday !’) {
console.log(‘Strawberry pie with whipped cream !’);
} else if (birthdayCake === ‘In april, it’s my brother’s birthday.’) {
console.log(‘Raspberry cake with cream !’);
} else if (birthdayCake === ‘In March, It’s birthday of my grandson !’) {
console.log(‘Big black Forest with full of cream !’);
} else if (birthdayCake === ‘In May, It’s my eldest son’s birthday !’) {
console.log(‘A black Forest with full of cream !’);
} else if (birthdayCake === ‘In June, it’s mom and dad’s birthday.’) {
console.log(‘A big rhum baba and apricot pie can be ?’);
} else if (birthdayCake === ‘In July, It’s my little girl’s birthday !’) {
console.log(‘An amazing chocolate cake without cow’s milk !’);
} else if (birthdayCake === ‘In August, It’s the birthday of my youngest son !’) {
console.log(‘A Saint honored cake !’);
} else {
console.log(‘It’s not someone’s birthday that I know !’);
};
// It’s not someone’s birthday that I know !