<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
<script type="text/javascript">
/**
* 1. includes(str) : 判断是否包含指定的字符串
* 2. startsWith(str) : 判断是否以指定的字符串开头
* 3. endsWith(str) : 判断是否以指定的字符串结尾
* 4. repeat(count) : 重复指定次数, 其实就是返回当前字符串 拼接当前字符串 传入数字为几 就拼接几次
*/
let str = 'this is my book'
console.log(str.includes('is'))
console.log(str.startsWith('this'))
console.log(str.endsWith('book'))
console.log(str.repeat(2))
</script>
</html>