Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

257
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda