Answers for "array.array"

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
20

python arrays

array = [1,2,3,4,5]
print(array,array[0],array[1],array[2],array[3],array[4]

#Output#
#[1,2,3,4,5] 1 2 3 4 5
Posted by: Guest on March-07-2020
1

arrays python

array = [1, 2, 3, 4]

array.append(5)

for i in array:
  print(i)
Posted by: Guest on October-10-2020
0

Arrays

int[] numbers = new int[10];

int[] names = new String[]{"John", "Jack"};

int length = names.length;

for (String name: names) {
    System.out.println(name);
}
Posted by: Guest on April-25-2021
0

arrays

//Javascript Array
var fruitList = ["Bananas", "Apples", "Oranges"]
Posted by: Guest on October-02-2020
0

array

<!DOCTYPE html>
<html>
   <body>
      <script>
         var str = ["1818-15-3", "1819-16-3"];
         var arr = str.split(":");

         document.write(arr[1] + ":" + arr[2]);
     </script>
   </body>
</html>
Posted by: Guest on May-22-2021

Code answers related to "array.array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language