CHALLENGE 1: Type Annotation Errors ==================================== SOLUTION: const age: number = 25; const score: number = 98.5; function greet(person: string): string { return "Hello, " + person; } EXPLANATION: - "age: number = 25" — declares age as a number (even though "25" is a string initially) - "score: number = 98.5" — score is a number (decimals are fine) - "person: string" — parameter person must be a string - ": string" after closing parenthesis — the function returns a string WHAT WAS WRONG: - Original age was a string ("25") but should be treated as a number - The function parameter person had no type, so TypeScript didn't know what type to expect - Without the return type annotation, it's unclear what greet() returns KEY INSIGHT: Function parameters ALWAYS need type annotations so TypeScript (and other developers) know exactly what type of data the function expects. TESTING: greet("Alice") // ✅ Returns "Hello, Alice" greet(42) // ❌ Error: Argument of type 'number' is not assignable to parameter of type 'string'