This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user