Answers for "fior loop in js"

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

javascript for loop

var nums = [1, 2, 3, 5];
for (var i = 0; i,nums.length; i++){
	console.log(nums[i]);
}
Posted by: Guest on December-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language