Open in app

Sign In

Write

Sign In

Eishta Mittal
Eishta Mittal

124 Followers

Home

About

Oct 31, 2022

Javascript — Objects

In JavaScript, an object is an unordered collection (non-primitive data-type) of key-value pairs. Each key-value pair is called a property. The key of a property can be a string. And the value of a property can be any value, e.g., a string, a number, an array, and even a function. …

Java Script

9 min read

Javascript — Objects
Javascript — Objects
Java Script

9 min read


Oct 30, 2022

Javascript — setTimeout and Loops- the most famous interview question

What will be the output of the given code?

Java Script

4 min read

Javascript — setTimeout and Loops- the most famous interview question
Javascript — setTimeout and Loops- the most famous interview question
Java Script

4 min read


Oct 30, 2022

Javascript — Polyfill for Promise.all, allSettled, race and any

There are 6 static methods in the Promise class. Promise.all Wait for all promises to be fulfilled, or for any to be rejected. If the returned promise fulfills, it is fulfilled with an aggregating array of the values from the fulfilled promises, in the same order as defined in the iterable…

Java Script

2 min read

Javascript — Promise Static Methods Polyfill
Javascript — Promise Static Methods Polyfill
Java Script

2 min read


Oct 30, 2022

Javascript — Custom Promise Polyfill

Syntax of creating a Promise instance:- new Promise((resolve, reject)=> { .... }) Here we see that a Promise takes a callback function which further takes two arguments :- resolve method and reject method.

Java Script

5 min read

Javascript — Custom Promise Polyfill
Javascript — Custom Promise Polyfill
Java Script

5 min read


Oct 27, 2022

Javascript Tricky Questions — Promises

1. Can we use await only with promises? No, we can use await with promise as well as any object that implements a then function.

Java Script

4 min read

Javascript Tricky Questions — Promises
Javascript Tricky Questions — Promises
Java Script

4 min read


Oct 27, 2022

Javascript — Promises

What is a Promise ? The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. In other words, A Promise is a special JavaScript object. It produces a value after an asynchronous operation completes successfully, or an error if it does not complete successfully. The word ‘asynchronous’ means…

Java Script

4 min read

Javascript — Promises
Javascript — Promises
Java Script

4 min read


Oct 26, 2022

Javascript Tricky Questions — Functions

1. Guess the output

Java Script

3 min read

Javascript Tricky Questions — Functions
Javascript Tricky Questions — Functions
Java Script

3 min read


Oct 26, 2022

Javascript — Functions

What is a function? A function in JavaScript is similar to a procedure — a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and…

Java Script

8 min read

Javascript —  Functions
Javascript —  Functions
Java Script

8 min read


Oct 9, 2022

Javascript Tricky Questions — Type Coercion

Type Coercion Type coercion is the automatic or implicit conversion of values from one data type to another. How Type Coercion is different from Type Conversion? Type Coercion si implicit whereas TypeConversion can be either implicit or explicit. Type Coercion — Js implicitly converts number 9 to string ‘9’ const value1 = "5"; const value2 = 9; let sum = value1 +…

Java Script

6 min read

Javascript Tricky Questions — Type Coercion
Javascript Tricky Questions — Type Coercion
Java Script

6 min read


Oct 9, 2022

Javascript — Data types

Javascript is a dynamic and weakly typed language. Dynamic — Variables in JavaScript are not directly associated with any particular value type. let foo = 42; // foo is now a number foo = "bar"; // foo is now a string foo = true; // foo is now a boolean …

Java Script

4 min read

Javascript — Data types
Javascript — Data types
Java Script

4 min read

Eishta Mittal

Eishta Mittal

124 Followers

Software Engineer

Following
  • fatfish

    fatfish

  • Sebastian

    Sebastian

  • Sonika | Javascript Hungry | Working at Walmart

    Sonika | Javascript Hungry | Working at Walmart

  • Andrea Giammarchi

    Andrea Giammarchi

  • Netflix Technology Blog

    Netflix Technology Blog

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech