question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[beta] Clarify title for "Basic Data Structures: Copy an Array with slice()"

See original GitHub issue

Welcome first-time open source contributors! 🏆

Challenge copy-an-array-with-slice has an issue.

The title says “Copy an Array with slice()”, but the challenge could be better described as “Copy Array items using slice()” as Array.slice() not only can copy whole arrays, but can copy individual items as well.

If you want to help fixing this, the contribution guidelines can help you get started.

This is the line where you can make this change.

Feel free to come chat with us in the Contributors chat room if you have any questions - or just want to say hi!

Good luck & Happy coding! 😄 👍


Already resolved:

✅ <strike>1. The test for this challenge does not run properly. The console gives me plenty of “Minified React Error #32”, Similar to the message reported in #12656.</strike>

✅ <strike>2. I originally thought the second test case just had a problem with formatting, but since there’s nothing wrong with it, I suspect it has to do with the React error. However, I noticed that the second test could be improved with a cleaner assertion. I suggest this line gets replaced with "assert(/\\.slice\\(/.test(code), 'message: The <code>forecast</code> function should utilize the <code>slice()</code> method');"</strike>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Greenheartcommented, Mar 3, 2017

@systimotic Haha looks like you’re faster than me! 😉

1reaction
Greenheartcommented, Mar 3, 2017

@systimotic This would be a good case for first-timers-only 😊

I don’t think we need a new issue - I’ll just edit the original post and clarify what is left to be done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Data Structures: Copy Array Items Using slice(), please
What i understand is that in the arr.slice(2,4); it means they find the third element in the array: and delete the next 4...
Read more >
FCC/07 - Copy Array Items Using slice().md at master - GitHub
We have defined a function, forecast, that takes an array as an argument. Modify the function using slice() to extract information from the...
Read more >
Basic Data Structures (7/20) | Copy Array Items Using slice()
Basic Data Structures (7/20) | Copy Array Items Using slice () | freeCodeCamp.
Read more >
Copy Array Items Using .slice() - Basic Data Structures
In this basic data structures tutorial we copy array items using the . slice () method. This makes up one part of many...
Read more >
Chapter 4. NumPy Basics: Arrays and Vectorized Computation
Basic Indexing and Slicing. NumPy array indexing is a rich topic, as there are many ways you may want to select a subset...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found