Beginner
TypeScript
Q31 / 100
How do you represent a value that could be either a string or null?
Correct! Well done.
Incorrect.
The correct answer is B) string | null
B
Correct Answer
string | null
Explanation
A union type "string | null" allows the variable to hold either a string value or null.
Progress
31/100