JavaScript Array Methods : Array.of() and Array()

Publicado el: 08 febrero 2020
en el canal de: TechFun
3,286
0

Please check this article for more details
https://www.techwithfun.com/11-must-k...

JavaScript Array Methods : Array.of() and Array()
usage and differences of Array.of() and Array() in JavaScript ES6

/* Array.of */

const myArray1 = Array.of(20);
console.log('MyArray 1: ', myArray1, ' length : ', myArray1.length)

const myArray2 = Array.of(20,30,40);
console.log('MyArray 2: ', myArray2, ' length : ', myArray2.length)

/* Array */

const myArray3 = Array(5);
console.log('MyArray 3: ', myArray3, ' length : ', myArray3.length)


En esta página del sitio puede ver el video en línea JavaScript Array Methods : Array.of() and Array() de Duración hora minuto segunda en buena calidad , que subió el usuario TechFun 08 febrero 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,286 veces y le gustó 0 a los espectadores. Disfruta viendo!