Let us say we have a function.
function Rabbit(){
console.log(\"shiv\");
}
Now without creating an object of this function i can assign
what does this mean. do this add a variable bark to function. or do this added a property to Rabbit object
do this add a variable bark to function - No
or do this added a property to Rabbit object - Yes
bark is a property of object of type Function
even if i am not creating an object using new operator
Rabit is already an object (of type Function). You are not creating an instance of this object, just that you are adding a property to it.