0% found this document useful (0 votes)
11 views3 pages

Js Notes Important

Uploaded by

STRESSED
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Js Notes Important

Uploaded by

STRESSED
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Introduction to Javascript

 Javascript is High Level a single-threaded, synchornus, multi-Paradigm Object


oriented Programming Language
1. High Level – No need to worry about memory allocations , stacking processes,
queuing and other operational level concepts. We can just think about logic,
Programming, and using libraries

2. Multi Paradigm – It can support various programming paradigm I,e Procedural


programming, object-oriented and function programming

3. Object-oriented – It helps developers create reusable, modular, and


maintainable code by organizing it around real-world entities and their
interactions .We can use class and object approach and can use oops
concepts like abstraction, encapsulation, polymorphism, and Inheritance

4. JavaScript is Single-Threaded:

JavaScript runs on a single thread, meaning it executes code one line at a time in a
synchronous manner.

Handling Asynchronous Functions:

Functions that are asynchronous (e.g., setTimeout, Promises, API calls) are not executed
immediately.

These functions do not block the main thread. Instead, they are handed off to external APIs
(like the browser's Web API or Node.js equivalents) for execution.

Event Loop's Role:

Page 1|3
Once an asynchronous operation is completed, the associated callback function (or the
resolved Promise) is sent to the event loop.

The event loop ensures that these callbacks are executed only when the main thread (call
stack) is empty.

Non-Blocking Nature:

JavaScript continues executing the rest of the code without waiting for asynchronous
operations to complete.

It is the language of web and it is used for creating and managing websites and web
applications. It is used to make web pages and web applications work dynamically

Page 2|3
Page 3|3

You might also like