// 翻转数组
// const arr ='hello'
// const arr1 =arr.split('').reverse().join('')
// console.log(arr1)
// splice 和slice
// splice
// const arr = [1,2,3,4,5,6]
// arr.splice(1,3,9)
// console.log(arr)
// slice //返回新数组,起始位到终止位,
// const arr = [1,2,3,4,5,6,7]
// const arr1 = arr.slice(0,2)
// console.log(arr1) //[ 1, 2 ]
// substring 和substr
// 一位的时候都是起始位到终止位
// const arr= 'hello'
// const res = arr.substring(1)
// const res2 =arr.substr(1)
// console.log(res,res2)
// 两位的时候,substring是起始位到终止位,sub是截取位数
// const arr= 'hello'
// const res = arr.substring(1,2)
// const res2 =arr.substr(1,2)
// console.log(res,res2) //e el