نیٹ ورکM0
ڈبلیو ایم0
درستگی100%
ای میل0s
وقت—
حروف0
غیر متصل0
خامی0
ترقی0%
کپاس لاک آن

کو ڈِک نیٹ ورک کو معطل کریں

غیر متصل زبان
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");