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
the function "delete" affect console.log?

I saw a video about it, its example code is here. The result is "Before delete obj.age there are three attributes(age name color) in the obj, After delete obj.age there are two attributes(name color) in the obj" in the video. But when I try it on my computer (macOS 10.15.7 Catalina Chrome 97.0.4692.71), Whether before or after, the console.log results are same ---here are two attributes(name color) in the obj

var obj = {};
obj.name = 'canoe';
obj.age = 1;
obj['color'] = 'blue';
console.log(obj.age);
//before delete age
console.log(obj);
delete obj.age;
//After delete age
console.log(obj);

The result in my computer is:

1
{
  "name": "canoe",
  "color": "blue"
}
{
  "name": "canoe",
  "color": "blue"
}

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