JavaScript
JavaScript
An Introduction to Javascript!
An Introduction to Javascript!
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 fun...
How to Run JavaScript Code
How to Run JavaScript Code
The primary way of writing and executing the JavaScript code is to write it in the "Script" of the HTML Document.
The example of the JavaScript written in the HTML Document using the Script tag is mentioned below -
<...
Variables in Javascript
Variables in Javascript
Variables in Javascript are the containers for storing the values of specific types. Variables can store a single value and there are three keywords in Javascript to store variables - Let, Var, and Const.
The code showing the declaratio...
Numbers in JavaScript
Numbers in JavaScript
Several Numeric notations are available in Javascript. Javascript Numbers are always stored as double-precision floating point numbers. In Javascript, there is only one type of numbers and those can be written without decimal and decimal.
The exampl...
JavaScript Operators
JavaScript Operators
The Operators in Javascript are used to perform mathematical operations in the Javascript Code. Several Operations like concatenation, adding two values, and so on can be achieved using operators.
Different Types of Operators in Javascript by whi...
Data Types in JavaScript
Data Types in JavaScript
The Variables can have different values of data and the classification of data according to the variable is known as Data types.
This can be understood with the help of an example, for instance, various food items can be stored in the refrige...
Conditional Statements
Conditional Statements
The statements which perform as per the given specific conditions are known as Conditional Statements. There are four types of conditional statements in Javascript namely -
- If Condition
- Else Condition
- Else If Condition ...
Switch Statements
Switch Statements
The Switch Statement in javascript is used to perform operations based on certain conditions. It has the same working as that of the Else-if condition.
There are cases in the switch statement and as per that cases, different conditions are made...
Loops in Javascript
Loops in Javascript
Loops in Javascript iterate the code and we don't need to write similar things again and again. Instead, loops do this for us.
There are five types of loops in Javascript and all are mentioned below -
- For Loop
- While Loop
Arrays in JavaScript
Arrays in JavaScript
We have variables to store the values. But when we have to store thousands of values, we have to make thousands of variables which will make the code much more hectic. So, the solution for such a case is "Array".
Array is a `linear data structure...
Strings in JavaScript
Strings in JavaScript
The collection of Characters is known as String. The strings can be declared using single quotes or double quotes. For instance:
let str = "Javascript is a good language;
We can extract the length of the string in Javascript by using the code ...
Objects in JavaScript
Objects in JavaScript
The objects in the javascript are something that has the properties and method. Let's take an example, everything we encounter in our day-to-day life is an object. For example, computers, mouse, and so on.
Such as in real life, In Javascript als...
Object Methods in JavaScript
Object Methods in JavaScript
Objects Methods in Javascript are the actions that can be performed on the objects. It is considered as the property that defines the properties of the objects.
This can be understood with the help of a simple example, In the image mentioned below...
Functions in JavaScript
Functions in JavaScript
Functions in Javascript is a block of code that will get executed specifically when it gets a call.
Moreover, the function acts like a VIP which will only come on invitation other it will never get invoked until gets called.
There are various use...
Object Referencing and Copying in JavaScript
Object Referencing and Copying in JavaScript
The main difference between the objects and Primitive Data Values is that the objects are copied and stored by references. However, the Primitive Values are copied as whole values.
Let's take an example of the Primitive values mention...
' this' keyword
' this' keyword
The this keyword in javascript always refers to an object. It refers to a block of code that is executing currently. Moreover, the this keyword references the object that is currently executing the function.
For instance, Rajesh is eating a piz...
Asynchronous Programming in JavaScript
Asynchronous Programming in JavaScript
Asynchronous Programming is the technique in which the tasks are performed parallel without waiting for another task to be completed. Javascript is Asynchronous Programming.
The concept of Asynchronous Programming can be understood by sim...
Callbacks in JavaScript
Callbacks in JavaScript
Callbacks in Javascript are the function that is passed as an argument to the other function such that it can be executed automatically after the execution of the function to which the callback is passed.
The concept of callbacks can be understoo...
Promises in JavaScript
Promises in JavaScript
Suppose, a large crowd is gathered at Mannat (which is the name of Shahrukh Khan's House) to know about the release date of Jawan. It's been a long since the new film Shahrukh Khan was released. So, to make fans satisfied, Shahrukh promised to l...
Constructor Functions in JavaScript
Constructor Functions in JavaScript
In JavaScript, constructor functions are used to create objects of the same type. They are a way of defining a blueprint for an object and then creating instances of that object.
Constructor functions are defined using the function keyword and are t...
Async and Await in JavaScript
Async and Await in JavaScript
Async and Await are the special syntaxes used to work with promises in Javascript in a comfortable manner.
Both the keywords Async and Await are used with promises in Javascript many times.
Async
Async is written before the function when u...
Type Conversion in Javascript
Type Conversion in Javascript
The process of converting data values from one data type to another is termed Type conversion in Javascript.
For instance, the Type conversion can be understood by a simple example of water. We can freeze water to make ice cubes...
DOM
DOM
DOM stands for Document Object Model. DOM is the collection of the attributes and tags of the HMTL. The concept of DOM can be understood with a simple example.
We're aware of the `...
Currying in JavaScript
Currying in JavaScript
The Currying is an advanced technique used in JavaScript to work with functions. The main work of currying is to transform the functions.
The concept of currying can be explained using a simple example of the Hotel that makes Chicken Dish orders....
Network Request
Network Request
The Network Request can be understood with a simple example, Mukesh goes to buy some sweets which are not available in the shop but he want them urgen...
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

