@zakaos it's something else with yours actually, just double checked. There are strange character returns in your code that is causing problems. once I deleted and re-entered new lines, the css started working

@WaterYourRoots reread the description on the left. It tells you what characters you need to include, and you can get those from the table. Also, as @CentropyIT points out, \n is not /n, as... similarly \r is not /r

@arslan555 in terms of free code camp you can start at very beginning, you can also start with the javascript if you want... you could also alternate between the two. You'd probably be better off not doing something like "advanced algorithm scripting" without some idea of what you're doing though ;)

@heidisdad2 I think it's a bit deeper than that. You should console log your input to see what's coming into the function, then work with that to get the relevant output. I logged a couple of variables and it's not close yet

@CentropyIT ok, not quite sure how to console.log...i have a problem with the loop. i don't know why i just cant get it in my head all the way. i have it understood like 90% but for some reason i cant get the i to loop.

InstructionsAssign the following three lines of text into the single variable myStr using escape sequences.

FirstLine\SecondLine\ThirdLineYou 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.

But even this is a bit questionable. What happens if arr is empty? Do we add and then remove the thing we just added? Do we remove nothing and then add? This is sort of a corner case you have to consider (and I don't remember if there was a test included along those lines) The description makes it sound like they want you to add to array first though. In which case, you should really be shifting last, regardless of whether they actually test for that or not.

@heidisdad2 definitely nothing in the exercise that I can see. I'd re-open the page and try working on it again. definitely try using scratch because it's so much more convenient to mess about with the code until it's right

@mauriciodeleonc 1) you aren't testing for hasOwnProperty before returning the propertyYou aren't actually even returning the property andcontacts[i].prop !== prop is not checking for the property either

@sjames1958gm okay soooo... im totally not getting it, im more of a visual guy, so could you /anyone write the piece of code where im making the mistake please? but still, thanks a lot, if i spoke coding i would totally get you hah

@abohannon Basically a recursive process breaks the problem down into smaller and smaller pieces (calling the function with these reduced problems) until a base condition is met.In this case the base condition is !Array.isArray(arr2) when this condition is hit then a value is pushed and that branch of recursion is stopped.

@abohannon So at the top level (the first call to flatten isArray is false, true, trueFor false 1 is pushed, for true flatten([2]) is called and flatten([3, [[4]]]) is calledflatten([2]) results in isArray of false only and 2 is pushedflatten([3, [[4]]) results in isArray of false, true, so 3 is pushed and flatten([[4]]) is calledSo you see each time flatten is called and arr2 is a new value the problem is reduced

I am trying to do it step by step... i think i have the split well done, a can do a reverse in the whole arr, and i can get that array into an string again.... but i use str1, becouse i am testing on the other stuff... reversing each word...

for that i think i can use a foor loop, to enter in each array and reverse each one.... i dont know if i am on the right way but the code is wrond somewhere, or i have to change my point of view! any advice!?

@javelina187 :point_up: June 24, 2017 3:35 PM - well, you should give it a fair shot and see how you do. If you're totally new at any sort of programming, then there is a lot to learn. As you said, you need those skills for doing most websites, as more and more are using javascript in one form or another to make the pages dynamic. Good luck on your learning journey!

sorry guys took a break, but im back to it now. still stuck on this one. last thing someone told me was that the function check has its own parameters. not sure what that means or how to fix this. not passing any tests...

@michaelcmelton array.slice is where your problem is. first time in the loop it goes from 0 to 4 (not 4,3..) and picks them, adding them to the array, the second time rount it goes from 4 to 4 and picks nothing up, it should be going from 4 to 8 and then 8 to 12 etc

there are other minor issues but this should solve part of your problem

@MCTwoDigitZeromyMusic should be an arraymyMusic should have at least two elementsmyMusic[1] should be an objectmyMusic[1] should have at least 4 propertiesmyMusic[1] should contain an artist property which is a stringmyMusic[1] should contain a title property which is a stringmyMusic[1] should contain a release_year property which is a numbermyMusic[1] should contain a formats property which is an arrayformats should be an array of strings with at least two elements

Hi all, I have encountered problem in "profile lookup". can I get help here? :(I can't get the results "No such contact" correctly shown and I wonder if my else if statement went wrong. I test hiding out the "No such contact" (else if statement) and some results turns out. Please help, thanks! :)

Hi all, I have encountered problem in "profile lookup". can I get help here? :(I can't get the results "No such contact" correctly shown and I wonder if my else if statement went wrong. I test hiding out the "No such contact" (else if statement) and some results turns out. Please help, thanks! :)

@nathccc Loop through if firstName == contacts[i].firstName is true, then check if contacts[i] hasOwnProperty(prop), if true, return the contacts with its prop. If not, return "No such property". If loop did not find any firstname == contacts[i].firstname, then return "No such contact"

@iamryandnelson the timers all need to be cancelled when you want to switch off. I implemented a solution on my version. What I did, was use window.setTimout, so that I could later find the timers, loop through and cancel them all

@adecyber you don't have to change anything in line 15. I mean its just for testing so you can test against the given value first, then if you want you can change the values of parameters and test against them.