Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In TypeScript, the default optional value is undefined. When a variable is declared optional using the ? symbol, if no value is provided for that variable, its value will be undefined.