Create a Deep Flattening Tool - Create a Deep Flattening Tool

Tell us what’s happening:

I am very sad. I have been learning JavaScript for the past one year. I can’t move beyond JavaScript. My logic is not developing. I have never worked on a real world project. And I don’t have any understanding of when to use recursive functions, when to use helper functions or when to use higher order functions. I don’t have this logical understanding.

Is there any solution to this thing? Now I have to quit learning JavaScript?
I am confused about this problem, is there any solution?

Your code so far


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Create a Deep Flattening Tool - Create a Deep Flattening Tool

Continue javaScript and → “Have no fear of perfection - you’ll never reach it”

2 Likes

This problem happens to everyone, I’m the only one.

you are certainly not the only one, learnign to solve problems is hard

but you don’t need to find the best way to solve this problem, you need to find a way

what have you tried so far?

1 Like

I asked Chat GPT for a logical task and solved it with string array and object method which are used in real life projects. But I got some of those things solved with the help of a senior developer. Then when I was initially learning JavaScript from videos. I created other small projects and from them I completed tasks like event domain and array method, string method and learned 10% of JavaScript, in short I tried all of them and got stuck in some logics which I have seen for the first time. Small logics and problems are solved but big logics are not solved and sometimes even star pattern in JavaScript is not known. So I came to this website to create logic but while solving this problem I came to know about this thing. That which thing I told above is used in which logic

what about the Create a Deep Flattening Tool challenge you were asking for help with? what have you tried for this one?

1 Like

I tried to run the loop and what is the problem in the function and what is the output of the function. After that, I took paper and pen and saw the loop iteration and did everything and finally took the code from the last AI and tried to understand but did not understand.

share the code you have tried to write yourself, and we can help you reach the solution

Sorry, I don’t have that code right now. I’ll save the code in case I have such a problem in the future.

when you are stuck, ask here, do not ask the LLM

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.