if判断
var age = 1;
if (age>3){
alterr("haha");
}else if{age<5){
alert("kuwa");
}else{
alert("kuwa");
}
while循环,避免程序死循环
while(age<100){
age = age + 1;
console.log(age)
}
do{
age = age + 1;
console.log(age)
}while(age<100)
foe循环
for(let i = 0; i<100; i++){
console.log(i);
}
forEach循环
//函数
age.forEach(function (value){
console.log(value)
})
for...in
标签:console,log,流程,笔记,js,while,kuwa,age From: https://www.cnblogs.com/horizonblue/p/17470741.html