Challenge: Email Auto-Responder with Default Parameters
Task
Swipe to start coding
You are building an automated email responder.
Define a function called generateEmailResponse with the following parameters and default values:
nameβ"Valued Customer"issueβ"a general inquiry"responseTimeβ"24 hours"
Inside the function:
- Generate an email response message using the provided values.
- Return the full message as a single string. The message should follow this format:
Dear [name],
Thank you for reaching out regarding [issue].
Our support team will review your request and get back to you within [responseTime].
Best regards,
Customer Support Team
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 11
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.35
Challenge: Email Auto-Responder with Default Parameters
Swipe to show menu
Task
Swipe to start coding
You are building an automated email responder.
Define a function called generateEmailResponse with the following parameters and default values:
nameβ"Valued Customer"issueβ"a general inquiry"responseTimeβ"24 hours"
Inside the function:
- Generate an email response message using the provided values.
- Return the full message as a single string. The message should follow this format:
Dear [name],
Thank you for reaching out regarding [issue].
Our support team will review your request and get back to you within [responseTime].
Best regards,
Customer Support Team
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 11
single