Advertisement
bolo17

Untitled

Apr 5th, 2022
1,171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Algorithms and Data Structures
  2. Basic JavaScript
  3. Store Multiple Values in one Variable using JavaScript Arrays
  4. With JavaScript array variables, we can store several pieces of data in one place.
  5.  
  6. 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:
  7.  
  8. const sandwich = ["peanut butter", "jelly", "bread"];
  9. Modify the new array myArray so that it contains both a string and a number (in that order).
  10. for more:http://besturl.link/idJPpVI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement