CHALLENGE 3: Compile and Run ================================== SOLUTION: Step 1: Create src/greet.ts ---------------------------- const name: string = "Alice"; console.log(name.toUpperCase()); Step 2: Compile --------------- npx tsc (This generates dist/greet.js) Step 3: Run ----------- node dist/greet.js Output: ALICE EXPLANATION: This demonstrates the complete TypeScript workflow: 1. Write TypeScript (.ts file) with type annotations 2. Compile with "tsc" (TypeScript compiler) → generates JavaScript (.js file) 3. Run the JavaScript with Node.js WHY THIS MATTERS: - Browsers don't understand TypeScript natively - The TypeScript compiler converts it to plain JavaScript - The JavaScript file is what actually runs VARIATION: You could also print just "Hello, [name]" instead: const myName: string = "Bob"; console.log("Hello, " + myName); OR use template literals (more modern): const myName: string = "Charlie"; console.log(`Hello, ${myName}!`); All three approaches work! DEBUGGING TIPS: - If "node dist/greet.js" fails, make sure: 1. You ran "npx tsc" first (creates dist/ folder) 2. The dist/greet.js file actually exists 3. You're in the correct directory