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] Arr is not changed to [1, 2, 3, 4, 5, 6], but to [1, 2, 3, [4, 5, 6]]

See original GitHub issue

Challenge add-elements-to-the-end-of-an-array-using-concat-instead-of-push has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36.

In following example:


var arr = [1, 2, 3];
arr.push([4, 5, 6]);
// arr is changed to [1, 2, 3, 4, 5, 6]
// Not the functional programming way

arr is not changed to [1, 2, 3, 4, 5, 6], but to [1, 2, 3, [4, 5, 6]]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tommygebrucommented, Jun 26, 2017

Oh I see in the example 👍 I will see if we can change this 😄 @Snip3rSVK

1reaction
4mifixcommented, Jun 26, 2017

Nothing is wrong with this challenge. The challenge is asking you to use the actual word CONCAT and remember to start your code before the return statement. I did this challenge and it worked. The key is in the wording right above Run Test. I will help you out with a little snippet you can figure out the rest var res = first.concat(second); . You have to change a word in the return statement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manifold roles of β-arrestins in GPCR signaling ... - NCBI - NIH
For β2 -adrenergic receptors (β2ARs) and β1ARs, βArr1/2 deletion increased, decreased, or had no effect on isoproterenol-stimulated ERK1/2 ...
Read more >
β-arrestin1 and 2 exhibit distinct phosphorylation-dependent ...
The β-arrestin conformational change data were generated by transfection of HEK-WT cells with an untagged PTH1R-WT expression construct and one ...
Read more >
Distinct conformational changes in β-arrestin report biased ...
Based on the previous finding that SII initiates exclusively β-arrestin but not G protein signaling, it is tempting to speculate that the two...
Read more >
Chapter 4. NumPy Basics: Arrays and Vectorized Computation
Nested sequences, like a list of equal-length lists, will be converted into a multidimensional array: In [16]: data2 = [[1, 2, 3, 4],...
Read more >
Answers to Exercises - Springer Link
b abcdmnop 1 c bacdmnop 2 d bcadmnop 3 d bcdamnop 2 c bdcamnop 2 b bcdamnop 0 a bcdamnop 3 m bcadmnop...
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