Get help on our basic JavaScript and Algorithms Challenges. If you are posting code that is large use Gist - https://gist.github.com/ paste the link here.
thecodingaviator on master
remove A (#31157) (compare)
[[1, 2, 3, 1, 2, 3] , 2 , 3]
[1, 2, 3, 1, 2, 3]
arr
Hi all,
I am working on the "Arguments Optional" challenge. I have tested all 5 cases. The returned results are exactly what FreeCodeCamp wants, however, when click submit, only the top two cases are marked as correct. The last 3, which expects "undefined" to be returned, are marked incorrect. When testing for all 3 undefined cases in FCC's editor window, the returned result is "undefined" (It shows on the left hand column).
Does anyone know why FCC won't recognize the returned values of "undefined"?
:cookie: 378 | @kumquatfelafel |http://www.freecodecamp.com/kumquatfelafel
:star2: 3440 | @moigithub |http://www.freecodecamp.com/moigithub
:cookie: 379 | @kumquatfelafel |http://www.freecodecamp.com/kumquatfelafel
You will need to use escape sequences to insert special characters correctly. You will also need to follow the spacing as it looks above, with no spaces between escape sequences or words.
Here is the text with the escape sequences written out.
FirstLinenewlinebackslashSecondLinebackslashcarriage-returnThirdLine
var myStr;"FirstLine\n\SecondLine\\rThirdLine"