Answers for "for i in with 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
-1

for loop in js

for (let counter = 1; counter < 3; counter++) {

    // console.log(counter,'n');       
}
Posted by: Guest on April-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language