What You Need to Know about JavaScript [Beginners Guide]

JavaScript is a word that even a newbie in the tech ecosystem can boldly tell you is a Programming Language.

Lately, JavaScript has become so popular and many developers are paying close attention to the language and of course, you’re reading this because you want to know more about the language.

So before you Jump into learning Javascript, you have to pay close attention to some theoretical explanations that will give you an easy headway while learning the Language.

Is JavaScript a Client-Side Language?

First of all, a client-side language is often referred to as the front-end. This is the part directly served to your browser when you open any webpage. These codes can be seen from your chrome browser when you press ctrl+shift+i (for windows) or CMD+shift+i(for Mac). Then click on the Element tab as shown below

The section seen above is a part of the webpage downloaded to your browser and interpreted by your browser. The client-side comprises of HTML, CSS and Javascript code.

JavaScript is a client-side language that works use to work only on client’s web browser with the help of the JavaScript Engine, such that when a webpage is opened, the JavaScript code is downloaded to the client browser and then interpreted before execution.

 

Let me break it down for you. Javascript code is in a readable human format called syntax. But computers only understand [0,1]that is binary code e.g 010011.

 

For your computer to interpret the Javascript code in human format, the browser will have to perform a task called interpretation. This is made possible by the JavaScript engine in browsers.

 

Browsers have 3 important programs which we are interested in this context.

  1. DOM: interprets the HTML code and then displays
  2. CSS interpreter: Interprets the CSS code and then style your page
  3. Javascript Engine. Interprets your Javascript code then displays it.

These programs play a major role in browsers and each browser has a name which it’s Javascript Engine is called.

JavaScript Engine Name in Browsers

  1. In Firefox browser is called SpiderMonkey
  2. In Chrome Browser is called V8 Engine
  3. In Safari Browser is called Nitro

Now let’s answer the question- is Javascript Script a Client-side language? completely

 

Yes! Javascript is Client-Side language. But, that was 100% true some years back, but now JavaScript has evolved to cut across server-side(node js), Machine Language(Tensorflowjs), Desktop App (electron js), Robotics and other facets through its frameworks.

 

According to JavaScript Teacher in his book Javascript Grammar said that JavaScript is a multi-paradigm language.

 

From just a simple scripting language, Javascript has become a centre of attraction for the past few years. It has some features which were fetched from other languages to make it a robust language.

These consistent add-ons to the language which was triggered after the standardization of the language in 1997 by the European Computer Manufacturer Association Script.

With every new ECMAScript, more features are added to the language example, in ES5: MAP, ForEach feature was added.

Other features like rest and spread syntax, arrow functions, template strings, object destructuring are now commonplace in Modern JavaScript code. Including Functional Programming like .map, .filter, .reduceJavaScript Teacher (2019).

From Vanilla Js to Multi Js frameworks. Take a deep dive in learning JavaScript. Happy Scripting.