What is Type Coercion in TypeScript?
New FeaturesType coercion means that one type of data is automatically turned into another type, like when TypeScript changes a number into a string. This process is based on JavaScript’s underlying mechanics and takes place automatically to ensure that interactions between different types don’t cause errors.
Continue reading →