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

188
Vistas
Javascript is object oriented?

Javascript is object oriented?

over 4 years ago · Jose Jesus Peralta.Bonadiez
1 Respuestas
Responde la pregunta

0

In short, yes it is. but its way of doing it is a bit different from most class-based object-oriented languages, because JavaScript is not a class-based language, it's a prototype-based language. JavaScript takes the concept of a prototypical object , an object that is used as a template from which the initial set of properties of a new object is obtained."

Example:

 function Perro(nombre, edad) { let perro = Object.create(ObjetoConstructor); perro.nombre = nombre; perro.edad = edad; return perro; } let ObjetoConstructor = { habla: function(){ return "¡Soy un perro!" } } let firulais = Perro("Firulais", 9); console.log(firulais);

Output:

 {edad: 9, nombre: "firulais", <prototype>: {habla: function habla()}}

If you want to know more about the subject here I leave you a blog that talks specifically about the subject: https://www.freecodecamp.org/espanol/news/programacion-orientada-a-objectos-en-javascript-explained-with-examples /

over 4 years ago · Santiago Trujillo Denunciar
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