Why can if (value) be unsafe for a string or null value when an empty string is valid?
Answer options
- A. It excludes the valid empty string
- B. It converts null into a string
- C. It makes every string undefined
- D. It disables strict null checks
Knowledge Check
Why can if (value) be unsafe for a string or null value when an empty string is valid?
Truthiness trap is a knowledge check interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as medium difficulty. It focuses on Frontend Language Browser, Ts Types Narrowing. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.