Summary: JavaScript and TypeScript Tidbits
This chapter introduced some fundamentals of TypeScript and JavaScript that are useful for functional programming. We learned different ways of writing a function, printing a string to the console, and using a ternary operator. We also talked about sum types and their discriminating unions. We also looked at several coding examples that enabled us to write code ourselves. We now have a solid foundation before learning about functional programming.
Get hands-on with 1200+ tech skills courses.