<script type="text/javascript">
function car(name,number)
{
this.name = name;
this.number = number;
this.model = function()
{
docoment.write("<h1>tata</h1>");
}
}
var c1 = new car("hhb",215);
var c2 = new car("jhg",98767);
c1.model();
document.write(c1.name);
</script>
I create a constructor CAR, but it means "c1.model();" doesn't return any value while calling the function.