# New String Methods

```javascript
let str = "I am string";
console.log(str.startsWith("I")); // true
// starts with after n character
console.log(str.startsWith("am", 2)); // true


console.log(str.endsWith("ng")); // true
// take 1st 10 char
console.log(str.endsWith("rin", 10)); // true


console.log(str.repeat(2)); // I am stringI am string
console.log(str.includes('rin')); // true (it's case sensitive)
```
