Answers for "array of js"

140

javascript array

//create an array like so:
var colors = ["red","blue","green"];

//you can loop through an array like this:
for (var i = 0; i < colors.length; i++) {
    console.log(colors[i]);
}
Posted by: Guest on July-01-2019
1

array ub js

var fruits = ['Apple', 'Banana'];
Posted by: Guest on October-27-2020
0

array of

Array.of(7);       // [7]
Array.of(1, 2, 3); // [1, 2, 3]

Array(7);          // [ , , , , , , ]
Array(1, 2, 3);    // [1, 2, 3]
Posted by: Guest on June-02-2021
-1

array of array

String[][] arrays = new String[][] { array1, array2, array3, array4, array5 };
Posted by: Guest on April-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language