Why need to learn JavaScript

Pirathikaran
2 min readMar 6, 2020

--

Javascript is the scripting and lightweight language. In early known as “LiveScript”. Mostly we use javascript on web application but other than that many non-browser environments also use javascript such as Node.js, Apache CouchDB and Adobe Acrobat. it is a client-side script to interact with the users and create dynamic webpages. when we want to create javascript file extension should be “ .js”. we can use the object-oriented concept (OOP) in javascript. Most popular javascript framework is angular, Node js, Vue js and react (It is a library).

What is javascript used for?

Creating interactivity websites

Developing mobile applications using react js

Creating web browser games

Back end developments (Server side application) using node js

Creating a desktop application using electron js

Javascript engine

when javascript want to run need to have javascript engines. Every browser has a different type of javascript engine.

How to work javascript engine

1. The engine reads the script.

2. Then it converts the script to machine code.

3. Machine code does rest of things.

Advantages of JavaScript

  1. JavaScript is easy to learn.
  2. It executes on the client’s browser, so eliminates server-side processing.
  3. It executes on any OS.
  4. JavaScript can be used with any type of web page e.g. PHP, ASP.NET, Perl etc.
  5. Performance of web page increases due to client-side execution.
  6. JavaScript code can be minified to decrease loading time from the server.
  7. Many JavaScript-based application frameworks are available in the market to create Single page web applications e.g. ExtJS, AngularJS, KnockoutJS etc.

Disadvantage of JavaScript

1. Client-side security — visible for code maybe it leads the way to malicious purposes and someone can use source code without authentication.

2. Browser support — It depends on the browser javascript engine. Every browser has a different type of engine. some old browser does not support new feature of javascript function because of not update the javascript engine.

3. Lack of debugging function — Browser does not show an error, It is not like most of other programming editor support debugging.

4. Single Inheritance -javascript only support single inheritance.

Conclusion
Javascript is the most popular language in the current situation and highly paid programming language. Every programmer should learn javascript in depth. It will help in your future.

Git servery

--

--