Numbers and Strings

Numbers and Strings
πŸ‘¨β€πŸ’Ό We're building a product catalog system. Our first task is to create variables that store product information with proper types.
We need to track:
  • Product prices (numbers)
  • Product names (strings)
  • Product descriptions (strings with template literals)
🐨 Open
index.ts
and complete the following tasks:
  1. Create a variable price with type number set to 29.99
  2. Create a variable productName with type string set to "TypeScript Guide"
  3. Create a variable quantity with type number set to 100
  4. Create a description variable that uses a template literal to combine the product info
πŸ’° Template literals let you embed expressions inside a string.

Please set the playground first

Loading "Numbers and Strings"
Loading "Numbers and Strings"