TypeScript ?. syntax example
In the previous article, I created an object whose properties will get summed up within the below function and the outcome will get returned and printed out on the console. What will happen if I have entered an undefined object into that function instead of the object itself as follows?:- Well, this is what you…