What is JavaScript?

JavaScript is a programming language initially came as client side language for web browsers. It was created by Brendan Eich in 1995 and was only used to do browser based development back in those days.

In 1995 it was developed under the name Mocha then it was officially called LiveScript but again renamed as JavaScript by netscape and deployed in the Netscape Navigator 2.0.

Standardization :

Around November 1996, ECMA International came out with standardization for JavaScript and officially released as ECMA-262 standard in June 1997.

Other major standardization:

1997 (later)ES1
” “Other development
2009-10ES5 (Map, ForEach)
Javascript Timeline


<p><strong>Please include attribution to csspoint101.com with this graphic.</strong><br /><br /><a href='http://csspoint101.com/javascript-vs-python/'><img src='http://csspoint101.com/wp-content/uploads/2020/01/Javascript-Timeline-min.png' alt='Javascript Timeline' 540px border='0' /></a></p>

Summary of JavaScript built-in primitive types :

Primitive typesFunction
BooleanTrue or false
Stringa list of words
Undefinedundeclared variable
SymbolUnique value that’s not equal to any other value
IntNumbers without any decimal point
NullNo value
FloatNumbers with decimal point

What is Python?

Python is much older language than we think . It was released by Guido Van Rossum in 1991 but gaining popularity now due machine learning and artificial intelligence hype . Python is an object-oriented programming language that supports functional programming .

Python do not use any keywords and curly brackets instead uses whitesapce indentation. The itself looks clean and uncluttered , it often uses English keywords where other programming language uses punctuation.

Core philosophy :

  • Explicit is better than implicit.
  • Simple is better than complex.
  • The complex is better than complicated.

Python major releases :

Jan 1994Python 1.0
31 Dec 1997Python 1.5
22 Jun 2001Python 2.0.1
03 Dec 2008Python 3.0
13 Sep 2015Python 3.5
14 Oct 2019Python 3.8
Python Timeline


<p><strong>Please include attribution to csspoint101.com with this graphic.</strong><br /><br /><a href='http://csspoint101.com/javascript-vs-python/'><img src='http://csspoint101.com/wp-content/uploads/2020/01/Python-Timeline-min.png' alt='Python Timeline' 540px border='0' /></a></p>

Summary of Python 3 built-in types (Source Wikipedia) :

TypeMutabilityDescriptionSyntax example
boolimmutableBoolean ValueTrue False
bytearraymutableSequence of Bytesbytearray(b'Some ASCII') bytearray(b"Some ASCII") bytearray([119, 105, 107, 105])
bytesimmutableSequence of bytesb'Some ASCII' b"Some ASCII" bytes([119, 105, 107, 105])
compleximmutableComplex number with real and imaginary parts3+2.7j
dictmutableAssociative array (or dictionary) of key and value pairs; can contain mixed types (keys and values), keys must be a hashable type{'key1': 1.0, 3: False}
ellipsisimmutableAn ellipsis placeholder to be used as an index in NumPy arrays... Ellipsis
floatimmutableFloating point number, system-defined precision3.1415927
More at : Python

Usage of both programming language :

Javascript usage :

  • Web development
    • Frontend development – Using frameworks and libraries like – React, Angular and Vue.
    • Backend development – Using a framework like : Node.js
  • App development
  • Game development
  • Machine learning / Artificial intelligence
    • Using a framework like – TensorFlow Js
  • Desktop Application development

Python usage :

Difference between JavaScript & Python

Array is supported as built-in data in JavaScriptPython uses list and tuple instead of Array
JavaScript uses curly brackets for defining code blocksPython instead uses indentation for code blocks
JavaScript is weakly-typed language ( implicit data type conversion possible)Python is strongly-typed programming language( implicit data type conversion not possible)
JavaScript uses Prototype-based inheritance modelPython uses class-based inheritance model
JavaScript uses no concept of MutabilityPython data types are mutable(changeable) and immutable

Pros & Cons :

JavaScript :

Usability : JavaScript could be used in ways like – web & App development etcFramework Jumble : Every single day new framework comes out in javascript that makes hard for new developers to cope with
Popularity : JavaScript is still growing very fast and becoming popular among developersBrowser Compatibility : Every browser interpret javaScript in different way which makes hard to write cross-browser code.
Support : It has very vast community of developers for supportInheritance : JavaScript does not support multiple inheritance
Interoperability : JavaScript goes nicely with other programming languagesServer-side Security : Code gets executed on user’s computer that can be used for malicious purposes
Update : ECMA international pulls out latest update annually with new featuresThreading : JavaScript doesn’t have any multi-threading or multiprocessor capabilities

Python :

Usabiltiy : Python can be used for web programming, machine learning etcSlow : Comparing to other languages like- Java , c++ etc it is slower
Good visualisations : Python is incredibly easy to readMobile development : Not suitable for mobile development
Rich standard library : Python’s libraries feature a huge amount of pre-written codeMulti-core work : Not very great for multi-core work
Huge demand : Python developer demand is growing rapidly due to rise of ML and AI .Testing time : Testing time is more when it comes to python based web application
Prototyping : Prototyping in Python is very fast and simpleDatabase access : Python’s database access layers are not yet developed

Job Opportunity (JavaScript v/s Python) :

JavaScript :

JavaScript is everywhere on the web from Frontend to Backend and it is now moving to App development (thanks to – flutter and react native) which means more job opportunities to JavaScript developers.

And I think the future for Javascript is very bright because of TensorFlow, it can now even be used in the Machine learning world.

Without more bragging about Javascript use cases, what I am trying to say is that Javascript’s job opportunity is much likely to grow in the future. So I can say without much hesitation JavaScript is the one language that is very necessary to learn if you are in this developer world.

Salary :

Although salaries vary from place to place and it depends on many factors like – experience, knowledge, location, etc but What I can say is that JavaScript is used everywhere so the need for developers is high compared to other programming languages. And If you are skilled than you are likely to get paid well.

According to Glassdoor the average salary of javascript developer in United States is $ 79k and high is around $ 181K .

Source: Glassdoor

Python :

Python is a great language without any doubt, it is a flexible, fast and reliable language. It is one of the fastest-growing languages in 2020. apart from Machine learning and AI, it is also being used in web development widely.

Source: StackOverflow

Salary :

Python popularity is going to boom in the future for sure due to the increase in demand for ML and AI.

According to the demand, there are not much-skilled developers are available in the market for serving the need of companies.

So they will eventually pay more to the existing skilled developers because of the need.

More demand and less supply = Monopoly

According to GlassDoor the average salary of python developer in United States is $ 85k and high is around $ 123K .

Source : Glassdoor

Future of both programming language :

Although it is impossible to predict what is going to happen in the future in the world of programming language because things do change very quickly here so I am just telling about what I think and stats points out.

​ Here’s what I think – JavaScript and python both are great programming language according to there use cases . It totally depends upon the developer /programmer what they what to create . Isn’t so?

Programming languages are just tools to do things, they come and go. If you want to do web development (Frontend and Backend) go with javascript and if you are interested in machine learning and stuff go with python without giving a second thought.

I know javascript could be used for machine learning through TensorFlow and python for web development through frameworks like – Django and flask but why to go with second alternative if you are getting same thing at no extra cost.

​ Although according to statistics python is growing at tremendous rate than any other programming language.

That does not mean JavaScript is going to die . Rather than choosing programming language according to popularity and hype you should be looking at what you want accomplish by learning programming .

Thanks for reading my article ♦Also read artical about best chrome extensions .