// // Array.from
// var arr = Array.from({length: 100}, (v, i) => i+1);
// console.log(arr)
// range 方法
const range = (start, stop, step) => Array.from({ length: (stop - start) / step + 1}, (_, i) => start + (i * step));
// var arr1 = range(1,100,1)
// console.log(arr1.length)
console.log(
range('A'.charCodeAt(0), 'Z'.charCodeAt(0), 1).map(x => String.fromCharCode(x))
)
// 大写字母A到Z的ascii码是从65到90
// 小写字母a到z的ascii码是从97到122
function raz () {
let result = []
for (let i = 97; i <= 122; i++) {
result.push(String.fromCharCode(i))
}
return result
}
console.log(raz())
console