The Message Architect

Easy+25 XP

Mission Briefing

The Guild's welcome terminal is offline. You must rebuild the automated message architect to greet new adventurers by their name, age, and home city.

The Concept: Message Architecture

Template Literals (using the backtick character) allow you to write multi-line strings and embed variables directly into the text using the${variable}syntax. It's much cleaner than using the+` operator!

The Objective

Your function receives three parameters: name, age, and city.

  1. Construct a dynamic sentence using template literals.
  2. It must read exactly: "[name] is [age] and lives in [city]."
  3. Return the constructed sentence.

01EXAMPLE 1

Inputname="Ali", age=25, city="Delhi"
Output"Ali is 25 and lives in Delhi."

Constraints

  • Use Template Literals.
FundamentalsStrings
JavaScript
Loading...
3 Hidden

Input Arguments

name"Ali"
age25
city"Delhi"

Expected Output

Ali is 25 and lives in Delhi.

Click RUN to test your solution