prototype archaic 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;
}