<script>
function func(){
}
func.prototype.max1=function(str){
alert(str);
}f = new func();
f.max1(Math.max(2,3,4,5,6));</script>
function func(){
}
func.prototype.max1=function(str){
alert(str);
}f = new func();
f.max1(Math.max(2,3,4,5,6));</script>
function func(){
}
func.prototype.max1=function(str){
return str;
}f = new func();
alert(f.max1(Math.max(2,3,4,5,6)));</script>
<script>
o = new Function();
o.prototype.max1 = function(){return Math.max.apply(null,arguments)};
f=new o();
alert(f.max1(1,2))
var biggest = f.max1.call(null,2,3,6,7);
alert(biggest);
</script>