What is a prototype ? code example
Example: prototype
String.prototype.countCharacter = function(char) {
return [...this].filter(c => c === char).length;
}
String.prototype.countCharacter = function(char) {
return [...this].filter(c => c === char).length;
}