નેટ 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");