📅  最后修改于: 2022-03-11 14:48:28.296000             🧑  作者: Mango
// ES6: With arrow function
var getResult = (username: string, points: number): string => {
return `${ username } scored ${ points } points!`;
};
getResult('joyous jackal' , 100);