I want to overwrite this in Number prototype function and dynamically change the value of variable, for example:
Number.prototype.xd = function(){
this = 11212;
}
var a = 171717;
console.log(a);
a.xd();
console.log(a);
is what I want, but it throws an error. In this way works Array.prototype.pop method:
fruits = ["a","b","c","d"];
console.log(fruits);
fruits.pop();
console.log(fruits);
Can I do the same?