Paracetamol.js๐Ÿ’Š| #111: ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ฝ”๋“œ ์„ค๋ช…

2142 ๋‹จ์–ด webdevjavascriptspanishbeginners

Explica este codigo JavaScript



๋‚œ์ด๋„: Intermedio




const set = new Set([1,2,3]);
console.log(set.map((item) => item * 2))
console.log(Array.from(set).map((item) => item * 2))
console.log([...set].map((item) => item * 2))


A. [2, 4, 6] , [2, 4, 6] , [2, 4, 6]B. Uncaught TypeError: set.map is not a function , [2, 4, 6] , [2, 4, 6]C. [2, 4, 6] , SyntaxError , [2, 4, 6]D. SyntaxError , [2, 4, 6] , [2, 4, 6]
Respuesta en el primer comentario.

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ