why the flip is there both String.prototype.replace and String.prototype.replaceAll in JavaScript
i checked, it’s for things like this where you’re not sure about what you’re replacing
String.prototype.removeAll = function (remove) {
return this.replaceAll(remove, "")
}
ecma forgot about the /g switch
Task 1: Make a function that removes a certain string from another string.