I started learning typescript some days back and I got into this Angular project online.
When I declared a variable like so: initPoint: Date;
within a class, vs-code highlighted this as an error initPoint is not initialize and the suggested quick fix was initPoint!: Date
.
So my question is, what is this !:
and why does it work but initPoint: Date | undefined
does not work?
I don't actually know if this !:
is typescript or angular - since I am completely new to both.