Answers for "js 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
1

Array

// this is sumple array
let array=[1,2,3,4]
Posted by: Guest on September-10-2021
2

js array

//create an array
let numbers = [ 11 , 13 , 15 , 17]

//you can use loop like this
for(let i = 0;i<numbers.length;i++) {
	console.log(numbers[i])
}
Posted by: Guest on April-17-2021
1

array

array 7
Posted by: Guest on May-03-2021
4

javascript array

const arr = [1, 2, 3];
Posted by: Guest on October-04-2020
2

array javascript

var familly = []; //no familly :(
var familly = new Array() // uncommon
var familly = [Talel, Wafa, Eline, True, 4];
console.log(familly[0]) //Talel
familly[0] + "<3" + familly[1] //Talel <3 Wafa
familly[3] = "Amir"; //New coming member in the family
Posted by: Guest on November-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language