CodesJava

Easy learning with example program codes

TypeScript Function tutorial

A TypeScript function is a group of statements which is used for performing a specific task. It provides the facility of code re-usability.

Typescript function declaration:

function  function_name() { 
   // function body 
}

Typescript function invocation:

function_name();

Typescript Function Example:

function hello() {   
   //function definition 
   console.log("Hello World!"); 
}
hello();//function invocation

 

Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status