Optional property class in typescript : <p>I'm new in typescript and I want to know what is the utility of optional property class in typescript? And what is the difference between:</p>

<pre><code>a?: number;

a: number | undefined;
</code></pre>
