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

Swipe to show menu

book
Challenge: Email Auto-Responder with Default Parameters

Task

Swipe to start coding

You are building an automated email responder.

  • Define a function called generateEmailResponse that has the following parameters:

    • name (default: "Valued Customer");
    • issue (default: "a general inquiry");
    • responseTime (default: "24 hours").
  • Write console.log lines to display output in the given format, where [name], [issue], and [responseTime] are to be replaced with the relevant values:

    python
  • Finally, call the function without passing any arguments.

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
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

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

book
Challenge: Email Auto-Responder with Default Parameters

Task

Swipe to start coding

You are building an automated email responder.

  • Define a function called generateEmailResponse that has the following parameters:

    • name (default: "Valued Customer");
    • issue (default: "a general inquiry");
    • responseTime (default: "24 hours").
  • Write console.log lines to display output in the given format, where [name], [issue], and [responseTime] are to be replaced with the relevant values:

    python
  • Finally, call the function without passing any arguments.

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
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt