Write a function formatMetric(val) that returns val.toFixed(2) if number, or val.toUpperCase() if string.
formatMetric(val)
val.toFixed(2)
val.toUpperCase()
Formatted number: 42.00 Formatted string: ONLINE [✓] Type checking verified (Time: 0.036s, Memory: 24.5 MB)