The non-null assertion operator tells the TypeScript compiler that a value typed as optional cannot be null or undefined. For example, if we define a variable as possibly a string or undefined, the ! operator tells TypeScript to ignore the possibility of it being undefined. We will be using these terms interchangeably in this article.