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.
Copyright QStack.ai, 2010-2023. Content on this site is licensed under the Creative Commons Attribution Share Alike 3.0 license.