Thursday, 4 August 2016

How to print values of a object in JavaScript?

I have an object




var friends = {
bill: {
firstName: "A",
lastName: "C",
number: "999",
},
};



How can I print the values of the object friends using a for...loop?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...