猫史档案馆


【水()()】只有把这个答对的才有资格当真正的JS大佬

用户:七式草莓七式草莓查看:6 回复:10 评论:6 创建时间:2022-01-24T22:03:08


/* 代码我做了错误处理,你们别想执行!!

 * 问:输出了什么(注意不止有数字,且要顺序正确)

 *\
function*test(p){
console.log(p);
ccnsole.log(yield 1):
console.lcg(yield 2};
}
var a = test(3);
conscle.log(a.next(6).value];
console.log(a.next(7).value);
conscle.lcg(test(4).next(8).value);
console.log(test(5).next(9).value);


回复

上一页1 页 / 共 1下一页
七式草莓七式草莓

弄错了,输出的只是一串数字,没有其他类型的东西

点赞0


评论


不知道该叫啥的一只萌新不知道该叫啥的一只萌新

3

1

7

2

4

1

5

1

点赞0


评论


YDS尹子YDS尹子

我不会咋办

点赞0


评论


86135clc86135clc

3

1

7

2

4

1

5

1

点赞0


评论


DebugDynamoDebugDynamo

完了我也不会咋办()()()(虽然我不是大佬)

点赞0


评论


蔡宁进(大家再见)蔡宁进(大家再见)

你代码是不是输错了……

点赞0


评论


全能代码师全能代码师

lcg?

点赞0


评论


黑马程序员黑马程序员

https://box3.codemao.cn/e/84e0931e785950c56db4?p=S2BacVVjtS4Bi6iyxm%2FUZpWdzRy2FU53XD0IhuD%2FHYA4udhDHpLwVndWVzdA%3D%3D     参加创作节的图哦急求建筑师imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8A%A0%E6%B2%B9.gif"alt="emotion_编程猫_加油"

点赞0


评论


86135clc86135clc

function*test(p){
console.log(p);
ccnsole.log(yield 1):
console.lcg(yield 2};
}
var a = test(3);//第二行代码输出3
conscle.log(a.next(6).value];//输出1
console.log(a.next(7).value);//第三行代码输出7 这行代码输出2
conscle.lcg(test(4).next(8).value);//第二行代码输出4 这行代码输出1
console.log(test(5).next(9).value);//第二行代码输出5 这行代码输出1

点赞1


评论


小鱼yuzifu小鱼yuzifu

我不会js(

3

1

7

2

4

1

5

1

点赞0


评论