JavaScript

Mohomed Irshad
3 min readMay 14, 2022

Things about JavaScript

JavaScript is a

Is a lightweight, interpreter-based language also it is an object-based scripting language. Why so? The simple answer is that because in JavaScript almost everything is like an object. JavaScript is the only out-of-the-box language that can run anywhere. JavaScript is a true full-stack language. JavaScript is based on the language JavaScript called ECMA script. Therefore almost all the specification found in JavaScript is found from the ECMA script. JavaScript also supports multi-paradigm. JavaScript uses new keywords when creating objects in languages like java, C#, and so on. JavaScript also supports static methods and variables.

Java and JavaScript

Java is a server-side language but JavaScript is not a server-side language. Java is a multi-threaded language but JavaScript is a single-threaded language. JavaScript is a weakly typed language but java is a strongly typed language.

How java script handles concurrency?

JavaScript is an asynchronous language by nature. What is asynchronous language? Asynchronous language is language in which its functions process may not be in a sequential way. This means that will execute and would not wait for the result and then execute the next process. Thread pool/job pool executes in order to handle the IO operations as JavaScript doesn’t wait. For heavy IO operations, the JavaScript will operate well but in case there are high CPU operations, JavaScript may not operate well.

The recent development of JavaScript allows multithreading.

JavaScript has also dynamically moved towards object-oriented programming as it contains keywords like class, extend, and so on.

Usages

  • JavaScript is now used in game development, mobile app development, and desktop app development. As a Javascript programmer, this opens up a lot of possibilities.
  • Javascript enables you to create stunningly gorgeous and lightning-fast websites. You can create a website with a console-like appearance and feel to provide the finest Graphical User Experience to your visitors.

The great thing about Javascript is that there are currently a variety of frameworks and libraries available that can be utilized straight in your software development to speed up.

Some of the Javascript frameworks are,

  • Angular
  • Node
  • React
  • jQuery
  • Vue.js

and there are much more Javascript frameworks available.

In my personal Campus project, I use Reactjs which is also a javascript framework. I use npm to get the dependencies/necessary libraries needed and it helped me a lot. The changes made in the code are quickly applied in the browser therefore it is very easy to look at the results and speed up the development time.

As there are so many advantages and benefits developers learn and use javascript any many applications, no matter whether it is frontend or backend… JavaScript is still used.

--

--

Mohomed Irshad

Student at Sri lankan Institute Of Information Technology and working as a trainee at Inexis Consulting