0

In my typescript code I'm not getting any errors when I use the new keyword to create an Arrow function object. now i know according to the documentation, You can not use new keyword to create an Object from Arrow function. But why am I now gettting any errors?My code in the VS code

I was expecting an Error according to the dicumentation. but this is working perfectly.

2
  • Please post your code as plain text with code format instead of screenshots Commented Aug 16, 2023 at 2:36
  • I just wanted to show everyone, that there are no compile errors. how am I going to do it by posting in a Text format? Commented Aug 16, 2023 at 7:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.