how to print a function object in js code example
Example: print object in javascript
var person = {name:"John", age:30, city:"New York"};
document.getElementById("demo").innerHTML = person;
var person = {name:"John", age:30, city:"New York"};
document.getElementById("demo").innerHTML = person;