function listProperties(obj) { for (var item in obj) { try { console.log(item , ';' , obj(item).toString()); } catch (err) { console.log(err.message); } } }