This commit is contained in:
Philippe Torrel
2026-09-17 10:41:34 +02:00
parent 0a2a7481a2
commit 31dae63fca
8 changed files with 142 additions and 9 deletions
+25 -4
View File
@@ -104,10 +104,31 @@ showInvitationFor('Ladislaus', 'Music Festival', 'September 10', true);
<script>
'use strict';
/*
TODO: showInvitationFor Function
*/
const showInvitationFor = (recipient, event = 'Tech Conference', date = 'July 24', isVip = false) => {
const introduction = !isVip
? 'Thank you for your registration.'
: 'You have registered as a VIP! Enjoy exclusive benefits and access to VIP areas.';
const message = `Dear ${recipient},
${introduction}
Event Details:
- Event: ${event}
- Date: ${date}
- Venue: Main Hall, Conference Center
We look forward to seeing you at the event!
Best regards,
The Event Team`;
console.log(message);
};
showInvitationFor('Heribert', 'Tech Conference', 'July 24', true);
showInvitationFor('Goldy', 'Art Workshop', 'August 15', false);
showInvitationFor('Ladislaus', 'Music Festival', 'September 10', true);
showInvitationFor('John', 'Shooting Event', 'September 12');
</script>
</body>
</html>