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

177
Views
What determines if a data type is an object or a primitive data type in JavaScript?

I have read that the null data type in JavaScript is a primitive data type, however due to a bug or something in the first version JavaScript, null is considered to be an object.

However, let's assume that null is a real object (and not a primitive data type like it really is), what does that mean exactly, i.e. what does a data type being an object mean exactly?

For example if a data type is an object, does that mean that attributes and methods can be added to instances of that data type, while a primitive data type can't have attributes and methods added to its instances? and so the reasosn why null is really a primitive data type and not an object is because you can't add attributes and methods to its instances?

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!