# Should I learn Machine Learning on Javascript or Python?

**URL:** <https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000>\
**Category:** General\
**Created:** [July 4, 2019, 3:38am UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000 "2019-07-04T03:38:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SurajRam](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@SurajRam](https://forum.freecodecamp.org/u/SurajRam)\
**Post date:** [July 4, 2019, 3:38am UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000/1 "2019-07-04T03:38:12Z")

</div>

I have just started out with machine learning by following this [course](https://www.coursera.org/learn/introduction-tensorflow) and using Python and the TensorFlow library (for Python). I have covered the basic topics like building a neural net, feeding it data and getting accurate results.

I want to go further in this field by creating web apps that leverage ML for some part of their function.

To do such thing which would be better: to learn the TensorFlow library for Javascript and do all the ML duties on JS. Or, to continue using Python and have that algorithm served to the user through something like the Flask framework.

---

<div class="post-metadata">

**Author:** ![alkapwn3d](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/alkapwn3d/32/92787_2.png) [@alkapwn3d](https://forum.freecodecamp.org/u/alkapwn3d)\
**Post date:** [July 4, 2019, 4:25am UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000/2 "2019-07-04T04:25:07Z")

</div>

I barely know anything about ML but if I were to guess,

Python is better for data science and ML by extension because it has a huge package library related to ML, you can use it on most platforms and its easy to read.

Javascript is made for browsers although its becoming more flexible due to nodejs. Its one of the most popular languages so people who already know Js but not much about python can jump into it relatively easily although Js wont have nearly as many libraries as python for ML.

Id say the language you do it in doesnt matter as long as you understand how neural networks work, how to prepare data or what ever else you gotta do. You dont really have to commit to one language but I guess you stick to what ever youre comfortable with.

---

<div class="post-metadata">

**Author:** ![ania\_duomly](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@ania\_duomly](https://forum.freecodecamp.org/u/ania_duomly)\
**Post date:** [July 8, 2019, 8:45am UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000/3 "2019-07-08T08:45:06Z")

</div>

Well, you could use Javascript libraries for Machine Learning, but if you are learning Python, then it’s much better to practice ML with Python.  
If you want to try it a little take a look at the tutorial about creating a chatbot with Python:

> **[How to create a chatbot in Python - Duomly Blog - Programming courses...](https://www.blog.duomly.com/how-to-create-an-intelligent-chatbot-in-python/)**
>
> Duomly's step by step tutorial explaining how to creat intelligent chatbot using Python and artificial intelligence with code snippets.

  
Then you may build a front-end for it 🙂

---

<div class="post-metadata">

**Author:** ![SurajRam](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@SurajRam](https://forum.freecodecamp.org/u/SurajRam)\
**Post date:** [July 8, 2019, 8:57am UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000/4 "2019-07-08T08:57:57Z")

</div>

Thanks for your response, now that the models can be built, trained and evaluated in python - how would they be deployed in a web interface?

---

<div class="post-metadata">

**Author:** ![alkapwn3d](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/alkapwn3d/32/92787_2.png) [@alkapwn3d](https://forum.freecodecamp.org/u/alkapwn3d)\
**Post date:** [July 17, 2019, 7:36am UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000/5 "2019-07-17T07:36:24Z")

</div>

use Flask or Django to use python in the browser

---

<div class="post-metadata">

**Author:** ![ShonaMcdermid](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@ShonaMcdermid](https://forum.freecodecamp.org/u/ShonaMcdermid)\
**Post date:** [August 19, 2019, 5:40pm UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000/6 "2019-08-19T17:40:28Z")

</div>

I am good at HTML and C++ that’s why I just enrolled for a machine learning [course here](https://ajaytech.co/machine-learning-in-python/) and I am doing in Python. You should prefer Python because of its demand and JavaScript is usually used in web related projects only. All in all, I strongly recommend Python as I have done much research in recent days.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 5:55pm UTC](https://forum.freecodecamp.org/t/should-i-learn-machine-learning-on-javascript-or-python/292000/7 "2021-01-16T17:55:44Z")

</div>

Closed on January 16, 2021, 5:55pm UTC


