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

198
Vistas
where are the objects of 'class' definitions in ES6

An ES6 class is a 'syntactic sugar' around the wellknown object-prototype based OOP, AFAIK. Therefore I'd expected to find class definitions in window just before tried this in a browser:

function Foo() {}
Foo.prototype.fooFunction = function() {};

class Bar {
    barFunction(){}
}

console.log(window.Foo); // shows: function Foo() ...
console.log(window.Bar); // shows: undefined !!!

The latter shows undefined instead of function Bar()...

Where is the Bar object/function that represents the Bar class?

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