# Javascript for DataScience

**URL:** <https://forum.freecodecamp.org/t/javascript-for-datascience/342794>\
**Category:** General\
**Created:** [January 20, 2020, 7:45am UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794 "2020-01-20T07:45:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadow.camperfcc](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shadow.camperfcc](https://forum.freecodecamp.org/u/Shadow.camperfcc)\
**Post date:** [January 20, 2020, 7:45am UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/1 "2020-01-20T07:45:33Z")

</div>

as you all know FCC is about javascript for web development (MEAN stack?) and is ok, i love it, but today the world of data is also important and more or less related to web…

I would like to know if there are frameworks or libraries to peform data science analyses with JS (statistics, machine learning, etc), and if so, ask to the FCC staff to perform a new certicate to learn the basics of this field…

if not, the same but with python 🙂

---

<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 20, 2020, 7:55am UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/2 "2020-01-20T07:55:19Z")

</div>

like this?

> **[Build 111 Projects, Earn 10 Certifications - Now With Python](https://www.freecodecamp.org/news/python-curriculum/)**
>
> We've been working hard on Version 7.0 of the freeCodeCamp curriculum. Here's
> what we're building.
> 
> Some of these improvements - including 4 new Python certifications - will go
> live in early 2020.
> 
> Note: if you're already going through the current...

---

<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 20, 2020, 7:57am UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/3 "2020-01-20T07:57:47Z")

</div>

> [@Shadow.camperfcc](#):
>
> MEAN

MERN  
MondoDB-Express-React-NodeJS

MEAN instead is Angular as framework

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [January 20, 2020, 4:04pm UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/4 "2020-01-20T16:04:26Z")

</div>

You really want to use Python over Javascript for mathematical/scientific heavy applications, in general.

---

<div class="post-metadata">

**Author:** ![chuckadams](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/chuckadams/32/109651_2.png) [@chuckadams](https://forum.freecodecamp.org/u/chuckadams)\
**Post date:** [January 20, 2020, 4:56pm UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/5 "2020-01-20T16:56:58Z")

</div>

I’ll second the python recommendations – it’s truly an excellent environment for statistics and machine learning given all the libraries and tooling around it, and hey, FCC has a course on it. You’re not without options in the JS world however (sorry for the Medium link):

> **[Top Javascript Machine Learning libraries in 2019](https://towardsdatascience.com/top-javascript-machine-learning-libraries-in-2019-cb63b95bdd10)**
>
> Javascript is everywhere, from enterprise to personal projects, enhanced by superset languages such as Typescript and ReasonML. Despite…

---

<div class="post-metadata">

**Author:** ![bradtaniguchi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bradtaniguchi/32/110427_2.png) [@bradtaniguchi](https://forum.freecodecamp.org/u/bradtaniguchi)\
**Post date:** [January 20, 2020, 9:50pm UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/6 "2020-01-20T21:50:50Z")

</div>

There are libraries (linked above) to do data science with JavaScript **however** JS is not the best language to do any serious work, due to 2 reasons:

1. JS is not a readable or easy to understand language. Data science is a specialized skill in itself, meaning less time to focus on the code itself, and due to JS’s nature as being the language of the web, it has **a lot** of quirks and legacy choices built in for better or worse. In comparison Python has 2 significant versions (2, 3) where 3 is being more or less standardize (finally). This, along with the fact Python provides easy to read and understand syntax, while still being very flexible, means its easier to program with its syntax, and thus more time can be devoted to the use-case. This isn’t only true for data science, but it is one of the main driving forces behind Pythons recent surges in popularity

2. JS is not a performance based language when it comes to CPU focused problems. JS is a single threaded language that relies on async event loop making it great for IO intensive tasks, but due to being single threaded there is a ceiling where multi-threaded implementations can “solve” problems faster. Don’t get me wrong JS is still fast, but due to its architecture it has its limits.

Python isn’t known for being fast either, how-ever, it is more flexible in its architecture to handle specific use-cases like multi-threaded environments, which might or might not be a critical pain point, but could be for data science use-cases.

Finally, if your goal is to get into data science, Python is the name of the game. You can learn using JS, but its second fiddle to Python in the data science realm, and I don’t see that changing any time soon.

---

<div class="post-metadata">

**Author:** ![chuckadams](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/chuckadams/32/109651_2.png) [@chuckadams](https://forum.freecodecamp.org/u/chuckadams)\
**Post date:** [January 21, 2020, 8:01am UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/7 "2020-01-21T08:01:46Z")

</div>

The readability of a language is an extremely subjective metric, and several of JS’s numerical libraries link to the same BLAS/LAPACK libraries that make numpy fast. I don’t think we need to get into language wars here: the landscape is wide open, and new options appear every day.

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [January 21, 2020, 1:00pm UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/8 "2020-01-21T13:00:56Z")

</div>

Since it was brought up, I will highly recommend you use Python 3 over Python 2. Python 2 has been EOLed.

---

<div class="post-metadata">

**Author:** ![erictleung](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/erictleung/32/1160_2.png) [@erictleung](https://forum.freecodecamp.org/u/erictleung)\
**Post date:** [January 24, 2020, 5:46pm UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/9 "2020-01-24T17:46:10Z")

</div>

[Here’s](http://learnjsdata.com/) a site that had this in mind. It makes use of a mix of base JavaScript, [D3.js](http://d3js.org/) and [lodash](http://lodash.com/).

So it’s very powerful already! The one obstacle you’ll have to get over is that you are manipulating JSON objects and not rectangular data frames or Excel spreadsheets. This might be a bit odd to wrap your mind around it. Good luck!

---

<div class="post-metadata">

**Author:** ![ZTD](https://avatars.discourse-cdn.com/v4/letter/z/b782af/32.png) [@ZTD](https://forum.freecodecamp.org/u/ZTD)\
**Post date:** [March 11, 2020, 7:40am UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/10 "2020-03-11T07:40:53Z")

</div>

i not heavy into JS, but i… dont know why you would want to force it for this sort of application over the aforementioned Python. i mean… we have soooo many libraries to tap into that make data work a breeze once you know them. most popular ones like numpy, pandas, scikitlearn, matplotlib, and so on… they’re just great and take seconds to pip install and run.

---

<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:** [June 1, 2021, 7:33pm UTC](https://forum.freecodecamp.org/t/javascript-for-datascience/342794/11 "2021-06-01T19:33:08Z")

</div>

Closed on June 1, 2021, 7:33pm UTC


