Can someone help me understand why my code won’t pass despite the console spitting out exactly what the test requirements are asking for?
I didn’t splice arr1 or arr2; so neither of the original arrays are altered.
Is there any way in the fCC console to show me what you just printed, including the elements and the nested arrays? My console seems to only show me the elements separated by a commas.
It’s probably best not to rely too much on the fCC editor to handle things other than the final processing of your solution code. If you’re experimenting with solution methods, IMO it’s best to use a text editor like VS Code or Atom. Copy and paste the code outline from the fCC editor into your local environment (your text editor), fill in your solution code and run it locally. The console.log() statement I presented was copied from my VS Code editor’s output console.
If you’re using Chrome, you could right-click the fCC challenge page, click ‘inspect’ and look at the console there. You’ll see: