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

Pubblicato il: 08 febbraio 2020
sul canale di: 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)


In questa pagina del sito puoi guardare il video online JavaScript Array Methods : Array.of() and Array() della durata di ore minuti seconda in buona qualità , che l'utente ha caricato TechFun 08 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,286 volte e gli è piaciuto 0 spettatori. Buona visione!