HashTable Data Structure in JavaScript ✋ What is Hash Table? In this blog, I am going to explain Hash Tables, which are also known as Hash Maps, Maps, or Dictionaries. A hash table is an associative array data structure that maps keys to values & it is capable to store a large amount of data […]

Read More →

Top JavaScript Algorithms ✋ Binary Search Algorithm Binary search is a faster and more efficient search to find an element in a given sorted Array. Linear search checks every array index element while a given element does not found. If we have an array of 1 to 16 Like [1,2,3…,16].So to search number 15, for […]

Read More →

Angular HTTP Request Testing HttpClient is introduced in Angular 6 and it will help us fetch external data, post to it, etc. We need to import the http module to make use of the http service. To start using the http service, we need to import the module in app.module.ts as shown below − HttpClientTestingModule  is used […]

Read More →

Konva JS Event Handling As per Konva doc – Konva is an HTML5 Canvas JavaScript framework that extends the 2d contextby enabling canvas interactivity for desktop and mobile applications. Every thing starts from Konva.Stage that contains several user’s layers (Konva.Layer). Each layer can contain shapes, groups of shapes, or groups of other groups. Event handling is a […]

Read More →

JavaScript Top Interview questions What is the difference between __proto__  vs Prototype? Whenever we create a function in JavaScript. JavaScript engine itself adds a property to that function and that is called prototype. This Prototype has a constructor property by default that points back to the main function. We can access prototypes by writing syntax like functionName. prototype. So by Using […]

Read More →

JavaScript Advance Interview Questions & Answers What is currying in JavaScript? We can process a function by passing all arguments at one and can return result. But When a function takes arguments one by one and each time it return a function that takes second argument until all arguments have been fulfilled. So It is called curring. So when […]

Read More →

JavaScript Interview Question… Write a program to Check number is Palindrome. function checkPalindrome(str) {     if(str) {         var pattern = /[^a-zA-z]+/g; // first remove spaces and special chars from given string         str = str.replace(pattern, ”).toLowerCase();         var str1 = str.split(”).reverse().join(”);         console.log(str, str1); // for testing         if(str1 == str.toLowerCase()) {             return true;         }else {             return false;         }     } } Output >checkPalindrone(“diD”)  => true > Second way without using any predefined method: function checkPalin(str)  {          var pattern = /[^a-zA-z]+/g;     var output = “”;     var input = str.replace(pattern, ”).toLowerCase();     for(var item of input) {         output = item  + output;      }     if(input == output) {         return true;     }else {         return false;     } } Output >     checkPalin(“Cigar? Toss it in a can. It is so tragic”)   result is true Write a program to count duplicate characters […]

Read More →

JavaScript Interview Questions & Answers What is JavaScript? Who invented this? As per wikipedia-Alongside HTML and CSS, JavaScript is one of the core technologies of the World Wide Web. JavaScript enables interactive web pages and is an essential part of web applications. JavaScript often abbreviated as JS, is a high-level, interpreted scripting language that conforms to the ECMAScript specification. JavaScript […]

Read More →

HTML advance Interview Questions What is DocType in HTML? . First thing which we should know that it is not a HTML tag. It is an instruction to browser about version of the markup language the page is written in. In HTML 5 we use doctype like <!DOCTYPE html> How to vertically align text inside […]

Read More →