Function Declaration

A function declaration gets hoisted and is written in the following way:

1
2
3
function myFunction(): number {
return 1337;
}