# Know basics of javascript, should i learn java to do DSA problems

**URL:** <https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391>\
**Category:** General\
**Created:** [April 14, 2024, 9:20pm UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391 "2024-04-14T21:20:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyanendramohanty0487](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gyanendramohanty0487/32/356594_2.png) [@gyanendramohanty0487](https://forum.freecodecamp.org/u/gyanendramohanty0487)\
**Post date:** [April 14, 2024, 9:20pm UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/1 "2024-04-14T21:20:52Z")

</div>

As a beginner I know the javascript syntax, fundamentals and have done some few basic projects using HTML , CSS , JS , and along with that i want to learn DSA and do problems as well .

So people are saying it doesn’t matter which language you choose , but people are also telling you should learn one static programming language (C, C++,Java) to do DSA problems , it would be much better .

What i am deciding is to give time to both of them (like projects using JavaScript and Java to solve DSA questions).

Is there any problem with it like what if i stuck or get confused on switching languages between doing projects with JS and DSA with java.

OR

i should focus on one language(i.e JS) and do both projects and DSA with it without wasting time (as earlier i told about i know syntax of javascript).

---

<div class="post-metadata">

**Author:** ![nstrickland2014](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nstrickland2014/32/358244_2.png) [@nstrickland2014](https://forum.freecodecamp.org/u/nstrickland2014)\
**Post date:** [April 15, 2024, 1:26am UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/2 "2024-04-15T01:26:30Z")

</div>

Following. I’ve also been told to learn an Oop language like Java, C#, or C++.

---

<div class="post-metadata">

**Author:** ![b0505205](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/b0505205/32/321193_2.png) [@b0505205](https://forum.freecodecamp.org/u/b0505205)\
**Post date:** [April 15, 2024, 4:45am UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/3 "2024-04-15T04:45:03Z")

</div>

I’m still not very advanced, and i expect the most important factor will be your end goals and what you want to do as a programmer, but i found that in learning by yourself without a teacher to give assignments and stuff, learning a similar language to what you are currently learning can be a good why to review and reenforce what you’ve learned and fill in some gaps, but to try to move from javascript to java might cost you a lot of time because there are a lot of basic things that apply in java that don’t in javascript so you might find yourself starting over at the beginning to learn data types and stuff. It might be better to become more proficient with one language and learn how to build things rather than jump all over the place like i find myself doing, but i have i like being able to take a break from one thing and move to the other, then i come back fresh (i’ve been learning C, C# and C++ and the C++ can be pretty exhausting sometimes and its easy to get hard stuck)

---

<div class="post-metadata">

**Author:** ![gyanendramohanty0487](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gyanendramohanty0487/32/356594_2.png) [@gyanendramohanty0487](https://forum.freecodecamp.org/u/gyanendramohanty0487)\
**Post date:** [April 15, 2024, 9:03am UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/4 "2024-04-15T09:03:45Z")

</div>

> [@b0505205](#):
>
> end goals

To learn DSA , and to do that i have to learn one static programming language like Java (as it is not compulsory) but i feel like i should learn it , before learning JS, i am familiar to some basic theoretical concepts in java .

---

<div class="post-metadata">

**Author:** ![gyanendramohanty0487](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gyanendramohanty0487/32/356594_2.png) [@gyanendramohanty0487](https://forum.freecodecamp.org/u/gyanendramohanty0487)\
**Post date:** [April 15, 2024, 9:06am UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/5 "2024-04-15T09:06:47Z")

</div>

> [@b0505205](#):
>
> to review and reenforce what you’ve learned and fill in some gaps

I dont know about OOPs concept , which is an important concept , but i think i will learn this concept in Java.

---

<div class="post-metadata">

**Author:** ![gyanendramohanty0487](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gyanendramohanty0487/32/356594_2.png) [@gyanendramohanty0487](https://forum.freecodecamp.org/u/gyanendramohanty0487)\
**Post date:** [April 15, 2024, 9:27am UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/6 "2024-04-15T09:27:59Z")

</div>

> [@b0505205](#):
>
> but to try to move from javascript to java might cost you a lot of time

I agree , it will take time , i know the syntax but i am not used to it(hands on), so it will take lot of practice to become efficient in this language , like have to reach that level where i can type code effortlessly without thinking of syntax.

---

<div class="post-metadata">

**Author:** ![gyanendramohanty0487](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gyanendramohanty0487/32/356594_2.png) [@gyanendramohanty0487](https://forum.freecodecamp.org/u/gyanendramohanty0487)\
**Post date:** [April 15, 2024, 9:38am UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/7 "2024-04-15T09:38:38Z")

</div>

> [@b0505205](#):
>
> It might be better to become more proficient with one language and learn how to build things rather than jump all over the place

True very true , i am doing DSA course where they are teaching just some basics concepts of Java before moving on to DSA . This channel teachings are very exciting and deep hence want to learn java coz i dont want to miss any of the videos of their DSA playlist, although they said they will be explaining it in pseudocode.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [October 14, 2024, 9:39pm UTC](https://forum.freecodecamp.org/t/know-basics-of-javascript-should-i-learn-java-to-do-dsa-problems/685391/8 "2024-10-14T21:39:00Z")

</div>

Closed on October 14, 2024, 9:39pm UTC

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