Tarun Sharma @tkssharma

All Posts

Common Design Pattern using Typescript

Posted on May 01, 2020

Most Common Design Pattern for TypescriptWe all use design patterns in our code. Sometimes, it's unnecessary, but it could give a nice and understandable structure to your architecture. Since…

Read full post

Javascript's new features in 2020

Posted on March 25, 2020

Javascript's new features in 2020ECMAScript 2015, also known as ES6, was a major release that took six years to finalize. Since then, Technical Committee 39 (TC39), the body in charge of developing…

Read full post

Typescript Interview Questions

Posted on March 24, 2020

JavaScript is an integral part of Web Development. It is an era of new client-side frameworks or technologies like AngularJs, Gulp, Grunt, Yeoman, etc., that provide a better user experience…

Read full post

Javascript Object equality and Compare

Posted on March 22, 2020

Kinds of EqualityIn JavaScript, there are several kinds of equality. If you’ve been writing JavaScript for a while, you’re probably familiar with at least two of them:Strict Equality: a === b (triple…

Read full post

Introduction to the DOM, DOM Tree, Nodes and Elements Part-2

Posted on March 21, 2020

In Understanding the DOM Tree and Nodes, we went over how the DOM is structured as a tree of objects called nodes, and that nodes can be text, comments, or elements. Usually when we access content in…

Read full post

Introduction to the DOM, DOM Tree, Nodes and Elements Part-1

Posted on March 20, 2020

Introduction to the DOMThe Document Object Model, usually referred to as the DOM, is an essential part of making websites interactive. It is an interface that allows a programming language to…

Read full post

Top 50 Node JS Interview Questions

Posted on March 11, 2020

Question 1What is NPM & how its being used with Node JSnpm is the package manager for JavaScript based application and the world’s largest software registry having thousands of javascript modules.You…

Read full post

cancelling axios request javascript

Posted on March 09, 2020

I have to implement a search functionality and it will trigger the search api in every key up event. After I complete typing a long search key, the search results will be override by the sub-string of…

Read full post

Play with Javascript Object and Array

Posted on March 08, 2020

count number of iteration for array elementsReturns an object with the unique values of an array as keys and their frequencies as the values.Use Array.prototype.reduce() to map unique values to an…

Read full post

Deep clone object in Javascript | Fun with Objects

Posted on March 07, 2020

clonning Objects in JavascriptCloning an object in JavaScript a task that is almost always used in any project, to clone everything from simple objects to the most complicated ones.As it may seem…

Read full post

Javascript Important Utility Methods

Posted on March 06, 2020

Like sleep method delay the execution for n-msConverts an asynchronous function to return a promise.In Node 8+, you can use util.promisifyUse currying to return a function returning a Promise that…

Read full post

What is the difference between JavaScript's, for...of and forEach?

Posted on March 05, 2020

For..of, for and is used to iterate over all enumerable properties of an object, including inherited enumerable properties. This iteration statement can be used with arrays…

Read full post

Javascript Coding Questions Array Intrersection

Posted on March 04, 2020

Javascript Coding Questions Array Intrersectionoption-1option-2option-3option-4Q. How to check if JavaScript Object is emptyWith JavaScript, it can be difficult to check whether an object is empty…

Read full post

Javascript Coding Questions 15 min code

Posted on March 04, 2020

Answer Questions : Deep conceptswhat will be the output of this code what will be the output of this code what is the closure with example A closure is an inner function that has access to the…

Read full post

Javascript Interview Questions Advanced

Posted on March 03, 2020

Write your own debounce method for some eventRemove Duplicate String (basic)flatten Array in JS without using flat(n)Reverse a given Stringconvert timeout function into a promise ImplementationWrite…

Read full post

Javascript Interview Questions 03

Posted on March 02, 2020

Number of ways to iterate Object in Javascript (Objects)map() will give you TypeError: is not a function:So, what can you do to iterate?You can call Object.entries() to generate an array…

Read full post

Javascript Interview Questions 02

Posted on February 02, 2020

Coding Question and problem solving (Arrays)Write a code to flatten Given Array Flaten only on level Lets do it JS WayES2019 introduced two new methods to the Array prototype: flat and flatMap. They…

Read full post

Javascript Interview Questions

Posted on February 01, 2020

Explain Values and Types inJavascriptWhat is Scope in JavaScript?Explain equality in JavascriptExplain Null and Undefined in JavascriptWhat is typeof operator?What is the object type?Explain arrays in…

Read full post