var obj = {
name: 'u14e'
};
function checkProp(obj, prop) {
return prop in obj && obj.hasOwnProperty(prop);
}
checkProp(obj, 'name');
var obj = {
name: 'u14e'
};
var properties = Object.keys(obj);
for (var i = 0; i < properties.length; i++) {
console.log('name: ' + properties[i]);
console.log('value: ' + obj[properties[i]]);
}