நிகர WPM0
WPM0
துல்லியம்100%
கடந்தது0s
நேரம்—
எழுத்துகள்0
தவறானது0
பிழைகள்0
முன்னேற்றம்0%

Shift + Enter · Start / Restart

குறியீட்டு வரியில் வழிகாட்டியைப் படிக்கவும்
நிரலாக்க மொழி
TypeScript
சிரமம்
எளிதானது

Add parameter and return types to a function.

function formatPrice(
  amount: number,
  currency: string
): string {
  return `${currency} ${amount.toFixed(2)}`;
}

const total = formatPrice(24.5, "USD");