<script>
function Person(gender) {
this.gender = gender;
}
Person.prototype.sayGender = function()
{
alert(this.gender);
};
var person1 = new Person('Male');
var genderTeller = person1.sayGender;
genderTeller();
</script>
Question:
It shows 'undefined'. what is the problem with the script?