1 1 2 3 5 8 ...
<script>var num1 = 1
var num2 = 1
var num3 = 0
var index = 2
while(index <= 100){
num3 = num1 + num2
num1 = num2
num2 = num3
index ++
}
alert("num3=" + num3)
</script>
选 C,执行一下就好了。
var x = 0var count = 0
while (x < 20) {
console.log(++count)
x+=2
}