This content originally appeared on DEV Community and was authored by Cristian Fernando
¿Qué crees que imprime el siguiente código?
const frutas = ["Mango","Manzana","Naranja","Pera"];
const { 3:pera } = frutas;
console.log(pera);
a) Uncaught TypeError : cannot read property
b) TypeError: null is not an object (evaluating)
c) Naranja
d) Pera
Te dejo la solución en el primer comentario.
This content originally appeared on DEV Community and was authored by Cristian Fernando
Cristian Fernando | Sciencx (2022-01-11T15:33:33+00:00) Paracetamol.js💊| #3: ¿Qué imprime este código?. Retrieved from https://www.scien.cx/2022/01/11/paracetamol-js%f0%9f%92%8a-3-que-imprime-este-codigo/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.