TypeScript: Undefined vs null - Stop using null (even in JavaScript)

You barely need to use null in TypeScript. Instead, use solely undefined. In this episode on the series to learn about TypeScript I will explain a couple of reasons. 📖Chapters 0:00 Introduction 0:40 Undefined better than null 1:00 TypeScript Optional Parameter 1:45 TypeScript Triple Equals 3:05 Null and undefined typeof 3:30 TypeScript Desctruction Difference with null and undefined 4:30 State Tracking Alternative 6:15 Conclusion 📝Source Code https://github.com/MrDesjardins/010-T... 💬Social Networks ► Follow me on Twitter:   / mrdesjardins   ► Follow me on LinkedIn:   / patrickdesjardins   ► My blog: http://patrickdesjardins.com/blog 📚My Books & Courses ► My TypeScript Book: https://typescriptbook.com/ ► My TypeScript Course: https://www.educative.io/courses/lear...