Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

arrow function in typescript

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

const PrintName =  (name: string): string => {
  return console.log("my name is " , name) ;
}
 
PREVIOUS NEXT
Tagged: #arrow #function #typescript
ADD COMMENT
Topic
Name
5+9 =