নেট WPM0
WPM0
নির্ভুলতা100%
অতিবাহিত0s
সময়—
অক্ষর0
ভুল অক্ষর0
ভুল0
অগ্রগতি0%

Shift + Enter · শুরু / আবার শুরু

কোডের নির্দেশিকা পড়ুন
প্রোগ্রামিং ভাষা
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");