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.
- Construct a dynamic sentence using template literals.
- It must read exactly: "[name] is [age] and lives in [city]."
- Return the constructed sentence.
01EXAMPLE 1
Input
name="Ali", age=25, city="Delhi"Output
"Ali is 25 and lives in Delhi."Constraints
- Use Template Literals.
FundamentalsStrings
JavaScriptSystem handles I/O — write your function only
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