/ Published in: JavaScript
prop(obj);
//usually use "$(str).appendTo(''#ul")
//usually use "$(str).appendTo(''#ul")
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var prop = function (a) { var str = ""; for (var i=0; i<a.length; i++) { str+= "<li>Obj Property: " + a[i] + "</li>\n"; } return str; }