Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

arrow function in typescript

//prototype 
const/let <FunctionName> = (params: type) :<ReturnType> =>{
  ....
};

const PrintName =  (name: string): string => {
  return console.log("my name is " , name) ;
}
Comment

Arrow function in typescript

const addNumbers =(num1:number,num2:number)=>{
    console.log(num1+num2) 
}
addNumbers(2,4);
Comment

PREVIOUS NEXT
Code Example
Typescript :: how many sets of 3 in 4 
Typescript :: regroupe les éléments de 2 tableaux java 
Typescript :: get all fields of mongoose schema typescript 
Typescript :: why do we use #Email in angular with ngmodel 
Typescript :: how to compile in typescript 
Typescript :: calculate fps html canvas 
Typescript :: testing tools vs testing techniques 
Typescript :: circular indicator gets whole page flutter 
Typescript :: vestacp ports mysql 
Typescript :: queryselectorall of multiple tags 
Typescript :: typescript new instance of interface 
Typescript :: typescript dynamic type 
Typescript :: print diagonal elements of matrix in c 
Typescript :: How to separate two similar names from two lists in Python 
Typescript :: dotcms elasticsearch query 
Cpp :: latex piecewise function 
Cpp :: 3d dynamic array c++ 
Cpp :: c++ get files in directory 
Cpp :: how to print the address of an object in c++ 
Cpp :: how to print a decimal number upto 6 places of decimal in c++ 
Cpp :: c++ short if 
Cpp :: input output c++ 
Cpp :: have unique vector after sorting vector 
Cpp :: unreal get eobjecttypequery cpp´ 
Cpp :: check file exist cpp 
Cpp :: how to know if two vertexes are connected in graph c++ 
Cpp :: how to use comparator funtion in priority queue in c++ 
Cpp :: c++ srand() 
Cpp :: remove value from vector c++ 
Cpp :: convert a int to string c++ 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =