Answers for "... javascript array"

4

array

//1-dimensional array 10
int[] array = new  int[10];

//2-dimensional array 10x5
int[][] array = new  int[10][5]; //

/* 
   |  Or it can also be declared by setting some values          |
   |  The dimensions of the array will be obtained 			     |
   |  automatically by the compiler according to the declaration | 
*/
int array[] = {1,2,3,4,5,6}; //---> array[6]
int array[][] = { {1,2,3,4},{5,6,7,8},{9,10,11,12} }; //---> array[3][4]
Posted by: Guest on May-04-2022
167

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
0

array

$ git config --global user.name "Yad Sallivann"
$ git config --global user.email [email protected]
Posted by: Guest on June-13-2021
0

javascript array

[p9oiuyt
Posted by: Guest on August-24-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language