Data types can be set for function parameters.

When writing functions in TypeScript, you can specify the types of data that the function expects as parameters

            
            
      function add(num1: number, num2: number) {
          return (num1 + num2)
      }