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

254
Views
If everything is an object in JS, then for each constructor must be a constructor because each constructor is an object. Does this have an end?

I'm thinking about several things that I couldn't find a clear answer for them although I read a lot of articles on websites and watched a lot of videos on Youtube.

  1. I've heard that everything is an object except the primitive types if they don't define with the 'new' keyword. When I create a function, I know that the built-in 'Function' method is called along with the 'new' keyword and a function will be created. But that 'Function' method is also a function and therefore is an object and must have a constructor and the constructor of Function must have another constructor. This thing reminds me of the concept that if we are created by God, who created the God and who created the God of God and so on and so forth. Is there any end?

  2. I know that there are three reference types in JavaScript: Objects, Functions, and Arrays. If everything is an object in Javascript, the functions and arrays are also objects. So why do we even need to separate the functions and arrays in reference types and show them as independent of the Object data type?

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!