Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这样为什么会显示错误 #655

Open
rh97-max opened this issue Dec 7, 2019 · 0 comments
Open

这样为什么会显示错误 #655

rh97-max opened this issue Dec 7, 2019 · 0 comments

Comments

@rh97-max
Copy link

rh97-max commented Dec 7, 2019

Challenge Stand in Line has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

function queue(arr, item) {
  arr=arr.push(); // 请把你的代码写在这里
  var i=arr.shift();
  return i;  // 请修改这一行
}

// 初始化测试数据
var testArr = [1,2,3,4,5];

// 控制台输出
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // 你可以修改这一行来测试你的代码
console.log("After: " + JSON.stringify(testArr));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant