Skip to content

Commit f545350

Browse files
committed
Changed the comment for the for in loop.
1 parent ccad571 commit f545350

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

forin.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
//For in Loop :
2-
//for in loop is used for access all the properties of an object
1+
//* For in Loop :
2+
//? for in loop is used for access all the properties of an object
33

44
var obj = {
5-
"first name": "Kirttinath",
6-
"last name ": "Ojha",
7-
age: 24,
8-
city: "BBSR"
9-
}
10-
for (var key in obj)
11-
{
12-
console.log(key+" : "+obj[key]);
5+
"first name": "Kirttinath",
6+
"last name ": "Ojha",
7+
age: 24,
8+
city: "BBSR",
9+
};
1310

14-
}
11+
for (var key in obj) {
12+
console.log(key + " : " + obj[key]);
13+
}

0 commit comments

Comments
 (0)