An Introduction to Javascript!
Published by
sanya sanya
Let's revisit the front-end analogy again:
As we all know the HTML, CSS provides structure and styling to the document. Now the question arises how to make our documents functional and user Interactive?
Here comes the role of JavaScript:
What is Javascript?
It's safe to assume that Javascript is the brain of a document!
Javascript is the scripting language that is used for various purposes. Javascript is widely used for making static and dynamic websites, Mobile applications, and so on.
Javascript also supports Object Oriented Programming and the main work of Javascript is to make webpages alive. There are two methods of writing javascript HTML Documents in the "script" tag and the other is to create a file with the extension ".js".

Javascript Execution
Javascript doesn't run off the IDE but it runs on the V-S Engine which is not the car engine but the engine which is provided by Google and other search engines. Javascript is considered the language of the web.Apart from this, there are three ways of writing javascript, mentioned in the points below -
- Node js - It is an extension that can be installed on the IDE and javascript code can be run through it.
- It can be run in the console by right-clicking, selecting inspect and then console in search engines.
- It can be written in an HTML Script tag in the HTML Document.
More about Javascript
The main fact that makes Javascript, the most famous language in the creation of websites is that apparently among the 1.8 billion existing websites, 98% of the websites used javascript as the medium of creating interactive webpages.Javascript has a standard which is known as ECMAScript. The idea or main motive behind the creation of ECMAScript is to ensure that none of the javascript documents have different meanings across the other platforms. For instance, If we use "const" to declare a variable and some other developers also use the same, then the meaning of that must be the same.
Javascript is like -
Limitation of Javascript
Certain things make javascript somewhat restricted in some cases and some of them are mentioned below -
- Accessing Local Files - Javascript cannot perform changes on local drives in the runtime.
- Cross-domain AJAX Request - It cannot make AJAX Requests to different domains due to security restraints.
- Multithreading - Javascript is a single-threaded language and it does one task at a time.
- Javascript cannot directly communicate or connect with the hardware at runtime
However, Javascript has a variety of libraries such as ReactJS, NodeJS, and so on which make coding in Javascript way more interactive and easier.
Library
WEB DEVELOPMENT
Basic
HTML - Hyper Text Markup Language
CSS - Cascading Style Sheets
JavaScript
An Introduction to Javascript!
How to Run JavaScript Code
Variables in Javascript
Numbers in JavaScript
JavaScript Operators
Data Types in JavaScript
Conditional Statements
Switch Statements
Loops in Javascript
Arrays in JavaScript
Strings in JavaScript
Objects in JavaScript
Object Methods in JavaScript
Functions in JavaScript
Object Referencing and Copying in JavaScript
' this' keyword
Asynchronous Programming in JavaScript
Callbacks in JavaScript
Promises in JavaScript
Constructor Functions in JavaScript
Async and Await in JavaScript
Type Conversion in Javascript
DOM
Currying in JavaScript
Network Request
Frontend
Backend
Interview Questions
FAANG QUESTIONS

