ayesha Riaz
3 min readJun 18, 2024

What is JavaScript

Introduction:

JavaScript or JS is a scripting language for the World Wide Web that can be used in other areas, without client-side internet applications. Joint with HTML and CSS, JavaScript creates striking effects like web browsers. JavaScript initiated in 1995 when Brendan Eich designed it as part of his effort on Netscape Communications Corporation, and it has grown into one of the most broadly used programming languages.

Origins and Evolution

JavaScript was created under Mocha and far along transitioned to Live Script already being named JavaScript. It is called JavaScript because its creator wanted to subordinate it with Java, which was extremely popular at the time. However, this is perfect even though those two languages vastly differ in enterprise and purpose.

The first web page was established using Netscape Navigator 2. It wires version 0 and, soon after, Internet Explorer 3. 0. These combined strategies of using internal and outward functionalities made JavaScript famous rapidly. Particular implementations of JavaScript would later come about through developed a standard known as ECMAScript, approved by the agency ECMA International. The specification free in 1999, known as ECMAScript 3, is a significant step in defining the prospective for future improvements.

Core Features

JavaScript is celebrated for its versatility and flexibility, which stem from several core geographies: JavaScript is famous for its versatility and flexibility, which stem from few core features:

Dynamic Typing:

In JavaScript, a variable can take in few values at a particular time and, at other times, take other morals of different types.

Prototypal Inheritance:

JavaScript the language does not use traditional inheritance familiar in languages such as Java or C++ but prototypes in its place. One possibility is using inheritance, where entities are said to possess assets and behaviors based on other objects.

First-Class Functions:

Functions in JavaScript are functional objects, hence mentioned to as functional objects. That is, they can be declared and prepared to a variable, be a parameter to a function, or be a worth returned by a function.

Asynchronous Programming: In Java script, the ways of asynchronous programming are callbacks, promises, and async Await. This is vital in handling non-blocking operations, mainly in ASP .NET Web development, where processes like I/O are time-consuming.

Event-Driven Programming: JavaScript has event-based terminology to a far larger extent, so it is highly suitable for designing web pages with interactivity. The elements include user inputs, HTTP requests, and DOM manipulation; each event causes discrete code segments.

JavaScript Engines

JavaScript interpreters are precisely designed to read and execute the designated JavaScript code. Netscape presented the first kind under the name of SpiderMonkey. The SpiderMonkey, V8 (by Google and used in both Chrome and Node.js), JavaScriptCore from Apple, and Chakra from Microsoft are the modern trains exhibited to provide important JavaScript presentation through JIT compilation and many more optimizations.

JavaScript in the Browser

When applied to web browsers, JavaScript allows for improved web page interactions. DOM is a tree-like construction of a web page that enables developers to change the contented and structure of a web page dynamically. It can even continuously modify the content, language, and layout of Web pages without distributing the complete Web page.

Most accessed API in the browser

DOM Manipulation: JavaScript can read the HTML and CSS codes in the DOM API for extra modification. Some characteristics that can be built from scratch by the developers include Elements and their characteristics, as well as the style and contented of these elements, which can also be canceled or changed.

Thanks for reading my words.