Basic JavaScript (37/111) | Store Multiple Values in one Variable using JavaScript Arrays

Pubblicato il: 28 agosto 2020
sul canale di: Stral Tech
381
1

Basic JavaScript (37/111) | Store Multiple Values in one Variable using JavaScript Arrays

Full playlist 👉    • Basic JavaScript (1/111) | Comment Your Ja...  

With JavaScript array variables, we can store several pieces of data in one place.

You start an array declaration with an opening square bracket, end it with a closing square bracket, and put a comma between each entry, like this:

var sandwich = ["peanut butter", "jelly", "bread"].

Modify the new array myArray so that it contains both a string and a number (in that order).

Hint: Refer to the example code in the text editor if you get stuck.

https://www.freecodecamp.org/learn/ja...


In questa pagina del sito puoi guardare il video online Basic JavaScript (37/111) | Store Multiple Values in one Variable using JavaScript Arrays della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Stral Tech 28 agosto 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 381 volte e gli è piaciuto 1 spettatori. Buona visione!