Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for in loop

//basic for in loop
const car = {
  carName: "Ford",
  carDoor: 4,
  carSpeed: 180
}

for (objKey in car) {
  console.log(car[objKey])
}
//output 
Ford
4
180
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
2+3 =