MCQs > IT & Programming > JavaScript > Which statement regarding this String prototype is correct? String.prototype.doSomething = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; };

JavaScript MCQs

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

Answer

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

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it