Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Email Auto-Responder with Default Parameters | Mastering Functions
Introduction to JavaScript

bookChallenge: 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?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 11
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: 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

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 11
single

single

some-alt