Hello. I am new to the FCC forum. There are several challenges I completed and wanted to post my solution; however, I do not seem to have post permissions. Is there something I need to do to be able to comment on and/or post my own solutions?
The threads that have solutions are intentionally locked. They became a “dumping ground” for low quality solutions and weren’t really helping the community.
If you want feedback on your specific solution, you can open a thread and what parts you want us to give you feedback on. When opening a feedback thread, please include a link to the Challenge and put your code in spoiler tags.
Ok this helps. I understand wanting to keep low-quality code away–will confuse more than it helps. Here is an example of a code solution I found for ‘Slice and Splice’
that is not one of the predefined solutions:
function frankenSplice(arr1, arr2, n) {
return arr2.slice().toSpliced(n, 0, ...arr1);
}
Is there a reason it wasn’t mentioned? It seems simpler than the other options.
Also, is there a way to get our pre
text to observe carriage returns and spaces/tabs? In my spoiler code above, the formatting is all off, no matter what I do to fix it.
I just copy/pasted your solution into the challenge and it didn’t pass.
I’m guessing this is because I am using Firefox and the toSpliced
method is not supported in FF yet. So FCC probably wouldn’t want to add this as a solution on the hints page yet. Or add a warning with it that it isn’t supported in all browsers yet.
Use triple back ticks instead of single back ticks around the code.
Thanks for the triple backtick help–much appreciated.
Yes–FF does not support toSpliced() yet.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.