for循环
for (变量起始值;终止条件;变量变化量){ }
// 循环输出1-100
for (let i = 1; i <= 3; i++) {
console.log('月薪过哇')
}
// 求出偶数的和
/* let sum = 0
for (let j = 1; j < 101; j++) {
console.log(j)
if (j % 2 === 0) {
sum += j
}
}
console.log(sum) */
// 打印小心心
/* for (let i = 0; i < 6; i++) {
document.write('
标签:function,arr,console,函数,let,log
From: https://www.cnblogs.com/Z2201210269/p/17824443.html