Answers for "javascript for loop in console.log"

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
0

console.log for loop

for(var i = 1; i < 11; i += 1) {
    console.log(i);
}
Posted by: Guest on July-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language