You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function Person(){
getAge=function(){
console.log('5');
}
return this
}
Person.getAge=function(){
console.log(4)
}
Person.prototype.getAge=function(){
console.log('3')
}
var getAge=function(){
console.log('2')
}
function getAge(){
console.log(1)
}
getAge();
Person.getAge();
Person().getAge();
getAge();
new Person.getAge();
new Person().getAge();
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: