# TypeScript Defining a Function - TypeScript

## What is TypeScript - Defining a Function?

A function definition specifies what and how a specific task would be done. Before using a function, it must be defined. Functions are defined using the function keyword. The syntax for defining a standard function is given below −

### Syntax

Example: simple function definition