Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Codecademy

Learn TypeScript: Functions

via Codecademy

Overview

Write functions in TypeScript to declare expected types of function parameters and return values.

Continue your TypeScript learning journey with Learn TypeScript: Functions. In addition to variable types, TypeScript allows you to declare the expected types of your function parameters and infer the types returned by those functions.



### Skills you’ll gain
* Apply type annotations to function parameters.
* Understand how TypeScript determins the return type of a function.
* Explicitly specify return types for functions.

### Notes on prerequisites
We recommend that you complete [Learn TypeScript: Fundamentals](https://www.codecademy.com/learn/learn-typescript-fundamentals) before starting this course.

Syllabus

  • Functions: Learn about writing functions in Typescript
    • Lesson: Functions
    • Quiz: Functions
    • Project: Pixel Smile
    • Informational: Next Steps

Taught by

Nitya Mandyam

Reviews

4.6 rating at Codecademy based on 92 ratings

Start your review of Learn TypeScript: Functions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.