Output formatting basics
📖 Scenario: You are creating a simple program to display product prices in a friendly way for a small shop.
🎯 Goal: Learn how to format output text using template literals to show product names and prices clearly.
📋 What You'll Learn
Create a dictionary (object) with product names and prices
Create a variable for currency symbol
Use a
for...in loop to format each product's outputPrint the formatted output lines
💡 Why This Matters
🌍 Real World
Formatting output is important for making data easy to read in reports, invoices, or user interfaces.
💼 Career
Many jobs require displaying data clearly, especially in web development and software that shows prices or lists.
Progress0 / 4 steps