Paracetamol.js💊| #3: ¿Qué imprime este código?

¿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 (evaluat…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Paracetamol.js💊| #3: ¿Qué imprime este código?." Cristian Fernando | Sciencx - Tuesday January 11, 2022, https://www.scien.cx/2022/01/11/paracetamol-js%f0%9f%92%8a-3-que-imprime-este-codigo/
HARVARD
Cristian Fernando | Sciencx Tuesday January 11, 2022 » Paracetamol.js💊| #3: ¿Qué imprime este código?., viewed ,<https://www.scien.cx/2022/01/11/paracetamol-js%f0%9f%92%8a-3-que-imprime-este-codigo/>
VANCOUVER
Cristian Fernando | Sciencx - » Paracetamol.js💊| #3: ¿Qué imprime este código?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/11/paracetamol-js%f0%9f%92%8a-3-que-imprime-este-codigo/
CHICAGO
" » Paracetamol.js💊| #3: ¿Qué imprime este código?." Cristian Fernando | Sciencx - Accessed . https://www.scien.cx/2022/01/11/paracetamol-js%f0%9f%92%8a-3-que-imprime-este-codigo/
IEEE
" » Paracetamol.js💊| #3: ¿Qué imprime este código?." Cristian Fernando | Sciencx [Online]. Available: https://www.scien.cx/2022/01/11/paracetamol-js%f0%9f%92%8a-3-que-imprime-este-codigo/. [Accessed: ]
rf:citation
» Paracetamol.js💊| #3: ¿Qué imprime este código? | Cristian Fernando | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.