Im trying to Add a few methods to the Javascript String Object. one of the main methods im trying to add is a substring count function
String.prototype.substring_count = function(delimiter){
return {THIS IS WHAT I NEED THE STRING FOR}.split(delimiter).length;
}
Where do you access the string in the String object?