Paracetamol.js💊| #90: Explica este código JavaScript

Explica este código JavaScript

const profesores = [“Oscar”, “Nico”, “Freddy”, “Christian”, “Angela”];
console.log(profesores.at(1)); //?
console.log(profesores.at(-1)); //?
console.log(profesores.at(10)); //?
console.log(profesores.at(3.8…


This content originally appeared on DEV Community and was authored by Cristian Fernando

Explica este código JavaScript

const profesores = ["Oscar", "Nico", "Freddy", "Christian", "Angela"];
console.log(profesores.at(1)); //?
console.log(profesores.at(-1)); //?
console.log(profesores.at(10)); //?
console.log(profesores.at(3.8)); //?
console.log(profesores.at(-3.3)); //?

A. Nico Angela undefined Christian Freddy
B. Oscar undefined undefined Freddy undefined
C. Nico SyntaxError null Christian SyntaxError
D. Nico null undefined undefiend null

Respuesta 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-04-02T15:37:53+00:00) Paracetamol.js💊| #90: Explica este código JavaScript. Retrieved from https://www.scien.cx/2022/04/02/paracetamol-js%f0%9f%92%8a-90-explica-este-codigo-javascript/

MLA
" » Paracetamol.js💊| #90: Explica este código JavaScript." Cristian Fernando | Sciencx - Saturday April 2, 2022, https://www.scien.cx/2022/04/02/paracetamol-js%f0%9f%92%8a-90-explica-este-codigo-javascript/
HARVARD
Cristian Fernando | Sciencx Saturday April 2, 2022 » Paracetamol.js💊| #90: Explica este código JavaScript., viewed ,<https://www.scien.cx/2022/04/02/paracetamol-js%f0%9f%92%8a-90-explica-este-codigo-javascript/>
VANCOUVER
Cristian Fernando | Sciencx - » Paracetamol.js💊| #90: Explica este código JavaScript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/04/02/paracetamol-js%f0%9f%92%8a-90-explica-este-codigo-javascript/
CHICAGO
" » Paracetamol.js💊| #90: Explica este código JavaScript." Cristian Fernando | Sciencx - Accessed . https://www.scien.cx/2022/04/02/paracetamol-js%f0%9f%92%8a-90-explica-este-codigo-javascript/
IEEE
" » Paracetamol.js💊| #90: Explica este código JavaScript." Cristian Fernando | Sciencx [Online]. Available: https://www.scien.cx/2022/04/02/paracetamol-js%f0%9f%92%8a-90-explica-este-codigo-javascript/. [Accessed: ]
rf:citation
» Paracetamol.js💊| #90: Explica este código JavaScript | Cristian Fernando | Sciencx | https://www.scien.cx/2022/04/02/paracetamol-js%f0%9f%92%8a-90-explica-este-codigo-javascript/ |

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.