conventions.io

Tech Challenge

2026-06-23

🔷

Daily Tech Challenge

TypeScript

medium
Question 1 of 5

With `x` typed as `unknown`, which single operation does the compiler allow without any narrowing?

Example
function handle(x: unknown) {
  // A: x.toFixed(2)
  // B: x === 5
  // C: x.length
  // D: x + 1
}

Tuesday, June 23, 2026 · A new challenge drops every day