String.prototype.endsWithbeginnerconst str = 'Hello, World!'
str.endsWith('!') // β true
str.endsWith('World') // β false
str.endsWith('World', 12) // β trueUse endsWith() to check if a string ends with a specific suffix, with an optional end position.
.endsWith() is case-sensitive: 'Hello'.endsWith('o') β true but 'Hello'.endsWith('O') β false.
Challenge: Implement endsWithO(str) that checks if str ends with lowercase 'o'.
endsWithO('hello') // β true
endsWithO('hellO') // β false