Should I Learn JavaScript or Python for AI and ML?

May 4, 2025 4 answers
Asked by Oboe
Hey everyone! I'm thinking about starting my programming journey, and I'd initially decided on JavaScript. However, I'm feeling a bit lost because I'm not sure if I want to focus on front-end or back-end development. My main interest lies in AI and machine learning, and I've heard Python is a better fit for that. Can anyone share some advice on which language I should really dive into?

Answers

96well map
I definitely recommend going with Python. Most AI and ML developers tend to use it over JavaScript, so you'll find a lot more resources and support tailored to your needs. Plus, check out platforms like Google Colab or Jupyter to help you get started.
Reply to this answer
mortar.3parts
Honestly, both languages have their uses, and once you get comfortable with one, the other won't be too hard to pick up since they share some similarities. Personally, I think Python is the way to go, especially for AI and MLโ€”itโ€™s just more useful in that domain.
Reply to this answer
!sockPair6
If you're serious about computer science, pick Python. It's versatile enough for web development too! Iโ€™d steer clear of JavaScript if you can, even though itโ€™s incredibly popularโ€”it can get pretty messy.
Reply to this answer
museum_membership
If you want to make quick money, JavaScript might be your best bet, but for solid computer science knowledge and AI work, definitely choose Python.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions