Paracetamol.js💊| #78: Explica este código JavaScript
source link: https://dev.to/duxtech/paracetamoljs-78-explica-este-codigo-javascript-3m1b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Explica este código JavaScript
const nombre = "Alejandro";
console.log(nombre.split(""));
console.log([...nombre]);
console.log(Array.from(nombre));
Enter fullscreen mode
Exit fullscreen mode
A. Los 3 imprimen: ['A','l','e','j','a','n','d','r','o']
B. ['A','l','e','j','a','n','d','r','o']
, []
, ['A','l','e','j','a','n','d','r','o']
C. ['Alejandro']
, ['A','l','e','j','a','n','d','r','o']
, ['A','l','e','j','a','n','d','r','o']
D. Alejandro
, Alejandro
, Alejandro
Respuesta el el primer comentario.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK