This visual trace shows how TypeScript strict mode works by enforcing exact type matches. The sample code defines a function greet that expects a string. When called with undefined, strict mode reports an error and stops compilation. Fixing the argument to a string allows the code to compile and run safely. Strict mode helps catch bugs early by checking types strictly, preventing runtime errors caused by unexpected values like undefined. Beginners often wonder why passing undefined causes errors; strict mode ensures type safety by disallowing such mismatches. Without strict mode, these errors might only appear when running the program, making debugging harder. Enabling strict mode is a best practice for writing reliable TypeScript code.