Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

256
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda