- Suzie and her sister Janie
run a successful neighborhood lemonade stand.
They are looking to expand their operations online.
They want to build out an e-commerce and marketing website
and run analysis on their sales data
to determine which of their flavors
are likely to sell the best.
They also want custom dashboards showing their sales data,
as well as some competitive analysis
achieved through web scraping.
In this lesson, I'm going to run through each of these tasks
and determine whether Python, JavaScript, or both
could be used to achieve their goals.
First of all, for setting up an e-commerce application,
it's highly likely that you'd need some JavaScript.
Although you can build web applications
that do not require it,
most of the modern web is driven by JavaScript.
Furthermore, Suzie and Janie would be able to take advantage
of frameworks and technologies written in JavaScript
that enable you to create native mobile applications
or mobile-friendly user interfaces.
For the backend of their e-commerce site,
they'll need a web server,
as well as a connection to a database.
For this task, both JavaScript and Python
are up for the task.
Both languages have robust web frameworks
with active user bases
as well as object relational mapping tools
that translate Python or JavaScript code
into database-specific language like SQL.
Finally, they would like to do some data analysis
and some web scraping.
Again for this task, both JavaScript and Python can be used.
However, Python's suite of data science tools
are somewhat superior to JavaScript's.
JavaScript does, however,
have many powerful data visualization libraries
that can be easily incorporated into existing websites.
As you can see, both Python and JavaScript
are incredibly popular for a reason.
They're able to accomplish a variety of tasks
and in many ways are complimentary to each other.
You really can't go wrong learning either language.