Challenge: Email Auto-Responder with Default Parameters
Swipe to start coding
You are building an automated email responder.
-
Define a function called
generateEmailResponsethat has the following parameters:name(default:"Valued Customer");issue(default:"a general inquiry");responseTime(default:"24 hours").
-
Write
console.loglines to display output in the given format, where[name],[issue], and[responseTime]are to be replaced with the relevant values: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 -
Finally, call the function without passing any arguments.
Løsning
Tak for dine kommentarer!
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 1.33
Challenge: Email Auto-Responder with Default Parameters
Stryg for at vise menuen
Swipe to start coding
You are building an automated email responder.
-
Define a function called
generateEmailResponsethat has the following parameters:name(default:"Valued Customer");issue(default:"a general inquiry");responseTime(default:"24 hours").
-
Write
console.loglines to display output in the given format, where[name],[issue], and[responseTime]are to be replaced with the relevant values: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 -
Finally, call the function without passing any arguments.
Løsning
Tak for dine kommentarer!
single