Nettó WPM0
WPM0
Pontosság100%
Eltávolítva0s
Idő—
Karakterek0
Helytelen0
Hibák0
Előrelépés0%
Caps Lock bekapcsolva
Kód olvasása azonnali útmutató
- Programozás nyelve
- TypeScript
- Nehézségek
- Könnyű.
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");