Coding task · JavaScript and TypeScript course · Module 6: TypeScript Basics

Practice: Compiling a .ts File

Write TypeScript code and see how the compiler checks types.

Task

Define a function with parameter types and check for compilation errors.