According to this page of W3 Schools, an object prototype is the constructor function that creates an object(Please mention if I have incorrectly interpreted this). And, according to one of my Javascript books, prototype is an object itself. But, when I do this:
JS:
function helloObject(name , id , age){
this.name = name;
this.id = id;
this.age = age;
}
document.getElementById("testElement").textContent = typeof helloObject;//returns function
I get that prototype is nothing but the constructor function. So, which one of the two arguments is correct?