Question
The prototype cannot be accessed(HTML5)
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())
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())
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.