Answers for "for (a of b)javascript"

21

for in loop javascript

var person = {"name":"taylor","age":31};
for (property in person) {
	console.log(property,person[property]);
}
//name taylor
//age 31
Posted by: Guest on January-17-2020
4

javascipr for of

const array1 = ['a', 'b', 'c'];

for (const element of array1) {
  console.log(element);
}

// expected output: "a"
// expected output: "b"
// expected output: "c"
Posted by: Guest on September-16-2020

Code answers related to "for (a of b)javascript"

Python Answers by Framework

Browse Popular Code Answers by Language