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

Publicado em: 08 Fevereiro 2020
no 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)


Nesta página do site você pode assistir ao vídeo on-line JavaScript Array Methods : Array.of() and Array() duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário TechFun 08 Fevereiro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,286 vezes e gostou 0 espectadores. Boa visualização!