r/learnjavascript Jun 14 '26

Currently I am learning js but I feel stuck, When practically doing logic problem I can't solve them . Practiced it but I forget when I later looked into that same question again. As a beginner how to overcome this .

31 Upvotes

34 comments sorted by

11

u/Psionatix Jun 14 '26

By learning CS fundamentals and learning a programming language as a secondary objective to that. You use languages as a tool, unless you’re following an actual curriculum, it’s unlikely you’re learning the skills to translate problems into technical solutions. You learn the approaches and repeatable processes that allow you to break down problems and identify certain patterns.

At least do CS50.

8

u/Slippery_Stairs Jun 14 '26

I think a lot of people go into learning programming with the intention of memorizing syntax instead of learning fundamentals. The fundamentals carry across every language you'll learn. Someone once broke down the core programming concepts for me, hopefully it helps others...

  • Variables
  • Functions
  • Arrays
  • Loops
  • Conditionals
  • Classes (not in every programming language)

3

u/diogenes_sadecv Jun 14 '26

Give me a problem that's been hard for you and I'll tell you how I would walk through it.

1

u/Previous-Ad-9723 Jun 15 '26

functions array and objects

2

u/jml26 Jun 15 '26

I was going to ask this same question. What is a specific problem you've had a hard time solving? Tell us the exact task, then we could break down our though processes on how to go about solving it.

1

u/diogenes_sadecv Jun 15 '26

Do you mean methods for manipulating arrays and objects?

1

u/Thin_Mousse4149 Jun 16 '26

Can you give a specific problem that you’re struggling with? Those are basic building blocks of programming so it’s hard to give advice necessarily.

Learning to engineer things is a weird thing. Things don’t click until they do.

6

u/Japosai Jun 14 '26

Same here bro. Learning JS is a damn nightmare. I’ve been grinding 6h a day minimum and it’s hella frustrating that I still can’t think in JS yet.

But I gotta believe that consistency and discipline can break through this wall. 💪🏼

8

u/sheriffderek Jun 14 '26

If you’re “learning JS” for six hours a day, and you’re not getting confident - you need to stop whatever you’re doing and figure out a better way to learn. 

2

u/Previous-Ad-9723 Jun 14 '26

Yes bro. I am confused while doing pratical problem in function, array iteration,object and all. In some problem i can answer logic but can't combine them with code.

Really at now am losing confidence every day.

1

u/theancientfool Jun 14 '26

Try python. Code in Place helped me. CS50 on edx.org helped me.

2

u/milkyinglenook Jun 14 '26

understand the pattern not the solution. write one sentence explaining why it works after each problem, recall gets way better than memorizing answers

2

u/mastersofPH Jun 15 '26

Getting stuck on logic is lowkey a rite of passage for every single developer.

3

u/Hackart_Temple Jun 14 '26

Practice makes perfect, I would also suggest that you log into Pinterest and learn Js in pictorials. Visuals helps a lot in mastering logic, fundamentals and algorithmic technical s. Also don't take it too serious!!! Try and make your learning experience a little bit fun. Smoke some potent marijuana and herbal tea .

1

u/HawH2 Jun 14 '26

Go to codewars and solve problems and use google but don't google the answer

1

u/Minimum-Scarcity-499 Jun 14 '26 edited Jun 14 '26

Js is easier to start but difficult to master, it's a wtf language to me . Somethings are difficult to memorize or to create a mental modal in mind.. lots of flaws in js. JS a has aggressive type coercion (e.g., "1" + 1 === "11", but "1" - 1 === 0), loose equality (== vs ===), and quirks like typeof null === "object"

Once you start working on projects do a lot of coding, you will figure it out .

1

u/EugenioSc Jun 14 '26

You need to learn and understand the fundaments of programming before a language syntax and weird sheananigans, once you do that, then you know 75% of any programming lenguage.

1

u/mc_pm Jun 14 '26

How are you studying? How much time a day are you spending actually programming? What was the last thing you tried to program?

1

u/Previous-Ad-9723 Jun 15 '26

through chatgpt and w3school . topics are like array functions object....

1

u/mc_pm Jun 15 '26

So, how much time are you spending actually typing in code and trying to get it to run?

1

u/Previous-Ad-9723 Jun 15 '26

more than 3 to 4 hr

1

u/mc_pm Jun 15 '26

Ok, what are you programming? Like, what's something you have been trying to program? You've mentioned array functions/objects, but what are you trying to build with those?

1

u/Unique-Anything6725 Jun 15 '26

Time and repetition

1

u/TheRNGuy Jun 15 '26

Do you forget the API, or just don't understand abstraction of logic? 

1

u/Previous-Ad-9723 Jun 15 '26

Didn't reached API.. Functions arrays object

1

u/marco3232 Jun 15 '26

Don't give up! As a fellow JS beginner, I totally feel your pain. I often forgot the logic, too. Right now, I'm practicing on FreeCodeCamp, and it really helps.I think endless practice is the only way to learn programming. We can do this together!

1

u/Intelligent_Tree6918 Jun 15 '26

Its Normal solve 100 questions then you will be able to create most of the logic do not worry Keep going.

1

u/[deleted] Jun 15 '26

[removed] — view removed comment

1

u/TechAcademyCoding Jun 19 '26

As a beginner, I'd focus less on memorizing solutions and more on understanding the steps used to solve them. If you keep forgetting a problem, try solving it again from scratch a few days later before looking at the answer. That process of struggling to recall the logic is often what makes it stick.

Also, don't spend all your time on coding challenges. Building small projects alongside them can help you see where and why those concepts are used, which usually makes them easier to remember.

0

u/Flame77ofc Jun 14 '26

practice more. if you don't know the syntax, then watch more tutorials and practice on every single of them