for in loop

let student = {

  name: "rahul kumar",

  age: 20,

cgpa: 7.5,

ispass : true,


}

for (let key in student){

  console.log("key=", key, "value=", student[key] )

}

Comments

Popular posts from this blog

practice test of Arithmetic Operations: