Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

277
Views
what is difference of 'class' in typescript?

i have some questions about typescript.

Q1. what is the difference of this two cases?

In the first case, an object is created with properties initialized to undefined, and in the second case, an empty object is being created. I used the same code, but the results are different. I want to know the difference between these two cases

1.1) first case: i use playCode to run the code.

enter image description here

1.2) second case: i use typescript playground to run the code. enter image description here

Q2. An error is occurring when the code does not have required properties as follows: However, in my Angular project, there is no error even if it is the same code. I wonder why.

enter image description here

tsconfig of my angular project

    "skipLibCheck": true,
    "noImplicitAny": true,
    "noImplicitThis": false,
    "alwaysStrict": true,
    "strictNullChecks": false,
    "noImplicitReturns": true,
    "suppressExcessPropertyErrors": false,
    "suppressImplicitAnyIndexErrors": true,
    "noStrictGenericChecks": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "strictFunctionTypes": true,
    "allowUnreachableCode": true,
    "allowUnusedLabels": true
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!