This content originally appeared on DEV Community and was authored by Cristian Fernando
Explica el siguiente código JavaScript
Dificultad: Intermedio
const x = (arr) => {
return arr.flatMap((item) => [...item])
}
console.log(x(["Hola", "mundo"]));
A. [ "H", "o", "l", "a", "m", "u", "n", "d", "o" ]
B. ["Hola", "mundo"]
C. [["Hola"], ["mundo"]]
D. Ninguna de las anteriores
Respuesta en el primer comentario.
This content originally appeared on DEV Community and was authored by Cristian Fernando
Cristian Fernando | Sciencx (2022-06-18T15:59:05+00:00) Paracetamol.js💊| #145: Explica este código JavaScript. Retrieved from https://www.scien.cx/2022/06/18/paracetamol-js%f0%9f%92%8a-145-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.