We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccad571 commit f545350Copy full SHA for f545350
1 file changed
forin.js
@@ -1,14 +1,13 @@
1
-//For in Loop :
2
-//for in loop is used for access all the properties of an object
+//* For in Loop :
+//? for in loop is used for access all the properties of an object
3
4
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]);
+ "first name": "Kirttinath",
+ "last name ": "Ojha",
+ age: 24,
+ city: "BBSR",
+};
13
14
+for (var key in obj) {
+ console.log(key + " : " + obj[key]);
+}
0 commit comments