Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyTypeScripttype annotationsSingle-choice MCQ

What does the type annotation on the parameter `tax` mean here?

function total(price: number, tax: number = 0.1): number { return price + price * tax; } total(100);