-
-
Notifications
You must be signed in to change notification settings - Fork 38k
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
My code seems to be generating the right output but it's not passing the tests #2828
Comments
@diegomm77 right now there is a problem with your code. When you declare |
@catapixel Thank you sir. |
This was referenced Jan 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Challenge http://freecodecamp.com/challenges/bonfire-steamroller has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Code:
var arr1 = [];
function steamroller(arr) {
// I'm a steamroller, baby
for (var i = 0; i < arr.length; i++) {
if (Array.isArray(arr[i])) {
steamroller(arr[i]);
}
else {
arr1.push(arr[i]);
}
}
return arr1;
}
steamroller([1, [2], [3, [[4]]]]);
The text was updated successfully, but these errors were encountered: