String manipulation types (Uppercase, Lowercase)
📖 Scenario: You are creating a simple program to help a user format their name correctly. Sometimes names are entered in all uppercase or lowercase letters, but you want to show the name in a consistent style.
🎯 Goal: Build a TypeScript program that takes a name string, converts it to uppercase and lowercase, and then displays both versions.
📋 What You'll Learn
Create a string variable with a specific name value
Create a boolean variable to decide which case to show
Use string methods to convert the name to uppercase or lowercase
Print the converted name based on the boolean variable
💡 Why This Matters
🌍 Real World
Formatting names and text is common in apps like contact lists, forms, and messaging to keep data consistent and readable.
💼 Career
Understanding string manipulation is essential for frontend and backend developers to handle user input, display data properly, and prepare text for storage or communication.
Progress0 / 4 steps