Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Email Auto-Responder with Default Parameters | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Email Auto-Responder with Default Parameters

Tarefa

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:

    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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 55
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Email Auto-Responder with Default Parameters

Deslize para mostrar o menu

Tarefa

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:

    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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 55
single

single

some-alt