Answers for "javascriprt array"

161

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

javascript array

switch(mySwitchExpression)
case customEpression && mySwitchExpression: StatementList
.
.
.
default:StatementList
Posted by: Guest on September-28-2021
-1

array js

const person = { firstName: "John" lastName:"Lee" age: "11"}
const fruits = [
  {id: 1, name: 'Apple'},
  {id: 2, name: 'Banana'},
  {id: 3, name: 'Orange'},
]
Posted by: Guest on November-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language