0
The prototype cannot be accessed(HTML5)
Enthusiast
,
/t5/animate-discussions/the-prototype-cannot-be-accessed-html5/td-p/11758839
Jan 16, 2021
Jan 16, 2021
Copy link to clipboard
Copied
var name = ["ysa","cde","adad"];
Array.prototype.myname=function(){
for (i=0;i<this.length;i++){
this[i]=this[i].toUpperCase();
//alert(typeof this[i])
}
}
alert(name.myname())
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

