Which of the following statements regarding this String prototype is correct? String.prototype.doSomething = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; };
Correct Answer: This method determines whether or not a string ends with another string.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions