题库 软件开发 题目列表 下面代码执行后的输出结果为(      ) function * cb...
单选题
下面代码执行后的输出结果为(      )
function * cb(x, y) {
    for(let i = Math.ceil(x); i <= y; i++) {
        yield i;
    }
}

var a = cb(6, 9);
console.log(a.next());
console.log(a.next());
A.

6 6

B.

6 7

C.

6 9

D.

9 9

题目信息
校招真题
-
正确率
0
评论
16
点击