ApplyCall
Use of apply and call with prototype functions in Javascript
by Piara Singh
HTML
<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
JavaScript
var fun = function(){
this.fun = arguments[0] || "fun";
}
fun.prototype.cal = function () {
return Array.prototype.every.apply(arguments, [function (v, i) {
return v % 2;
}]);
}
console.log("fun");