Answers for "js arro"

162

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

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

() = javascript

//Normal function
function sum(a, b) {
  return a + b;
}

//Arraw function
let sum = (a, b) => a + b;
Posted by: Guest on May-22-2020
0

array javascript

special_dates = [];
special_dates.push(new Date('2021/02/12').getTime());
special_dates.push(new Date('2021/02/13').getTime());
special_dates.push(new Date('2021/02/14').getTime());

			
for (var i = 0; i < special_dates.length; i++) {
 console.log(special_dates[i]) ;
}
Posted by: Guest on February-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language