var student = {
name: "David Rayy",
sclass: "VI",
rollno: 12
};
// Function to list the properties of an object
function listObjectProperties(o
var student = {
name: "David Rayy",
sclass: "VI",
rollno: 12
};
// Function to list the properties of an object
function listObjectProperties(obj) {
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
console.log(prop);
}
...
kalu.hashnode.dev8 min read