Run ❯
Get your
own Node
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
function printMileage(mileage: number | null | undefined) { console.log(`Mileage: ${mileage ?? 'Not Available'}`); } printMileage(null); // Prints 'Mileage: Not Available' printMileage(0); // Prints 'Mileage: 0'
Mileage: Not Available Mileage: 0