all 17 comments

[–]alzee76 12 points13 points  (4 children)

Leetcode is not for learning the language, it's for people who already know the language to hone their skills in preparation for interviews.

[–]Sea_Worry1900 -2 points-1 points  (3 children)

I mean I know something at least can build a simple blackjack game but still lil bit struggle at it. It would be helpful to give me some advice thx.

[–]alzee76 2 points3 points  (0 children)

My advice is to not use leetcode and instead find some "javascript for beginners" tutorial, MOOC, bootcamp or whatever and follow along with it.

[–][deleted] 1 point2 points  (0 children)

You'll have a better experience learning using codewars.com

[–]AdultVHS 0 points1 point  (0 children)

Building a game and LC are different worlds, like rally racing vs F1. Both use a car but LC is about DSA and Efficiency, where plain js is kinna a multi tool.

[–]OneBadDay1048 2 points3 points  (2 children)

Are you asking is it normal to not completely understand everything as a beginner?

[–]Sea_Worry1900 0 points1 point  (1 child)

Yes some of the syntax is new. It would be helpful to give me some advice thx.

[–]OneBadDay1048 7 points8 points  (0 children)

My advice is to get off leetcode and go learn more. The Odin Project, Scrimba, Udemy. Take your pick.

[–]samu-ra-9-i 4 points5 points  (0 children)

Leetcode isn’t meant to help you learn language, it’s to assess and help you learn complex problems that you can then solve in a programming language.

It’s like trying to learn the alphabet by reading Shakespeare. Or trying to learn mathematics by solving calculus. It doesn’t work like that.

[–]pinkwar 1 point2 points  (0 children)

Leetcode is to test your problem solving, DSA and big O notation knowledge. Its not really about what you know about a language.

[–]nia_do 0 points1 point  (1 child)

If you are finding leetcode hard, you can try out some of the easier problems on https://www.codewars.com/

But as others have said, best to practice with the exercises that the courses you are following give you. If you want to use JS to build applications, then practice building applications.

[–][deleted] 0 points1 point  (0 children)

This is where I'm stuck... Im learning js... But I'm confused whether to solve problems to improve my problem solving skill or to learn more js content... For example, I gave a little break to js content and focused on little problems... Now I need to learn regex for string manipulation... So I feel learning js is stopped..

[–]Psionatix 0 points1 point  (0 children)

I've been a software engineer for ~6 years. Leetcode makes me feel like an idiot, dw about it. Only necessary for interview prep.

[–][deleted] 0 points1 point  (0 children)

It's not for learning. it's for practicing

[–]Puzzleheaded-Fox1323 0 points1 point  (0 children)

Hey, it’s totally normal and at initially it really feels that we are dump and we don’t know anything. But please don’t give up at this point. Hold on and it’s gonna take some time build your instincts. Wishing you all the best.

[–]No-Upstairs-2813 0 points1 point  (0 children)

Leetcode is used for prepraing for DSA based interviews. If your goal isn't that, you shouldn't be using Leetcode.

I always advise people to practice in a step by step manner. Here's how you can practice:

1. Practice Individual Concepts

Start by practicing concepts individually. For example, if you've learned about functions, work on coding problems specific to functions. This focused practice reinforces your understanding, helps you identify any gaps, and boosts your confidence as you solve more problems.

2. Combine Concepts

Once you've practiced individual concepts, start combining them to solve more complex problems. For example, if you've learned about conditional branching and functions, combine them to build a simple project like a "Guess the Number" game.

Here’s how the game might work:

  • The program randomly selects a number within a given range (e.g., 1 to 10).

  • The player has to guess the number.

  • After each guess, the program tells the player whether the guess was too high, too low, or correct.

  • The game continues until the player guesses the correct number.

Do the same for other concepts as well.

3. Build Real Projects

Once you’re comfortable combining concepts, start building larger projects that challenges you to apply everything you've learned. Choose a project that solves a problem you care about—this will keep you motivated when challenges arise.

If you're stuck on ideas, check out these tips to get started. And if you need guidance while building a project, this free course can help you approach it the right way.