Answers for "benifit of using arrow function in typescript"

5

arrow function in typescript

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

const PrintName =  (name: string): string => {
  return console.log("my name is " , name) ;
}
Posted by: Guest on October-13-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language