ASCII Code is magic to do String Operations.  What is ASCII? 💡ASCII is a common data encoding type used for computer-to-computer electronic communication.ASCII assigns standard numeric values to letters, numerals, punctuation marks, and other characters used in computers. 💡What is the purpose of ASCII codes? The computer doesn’t understand English, Hindi, or any language. But […]

Read More →

Representation of Negative Binary Numbers 💡Most Significant Bit The leading 2 in the decimal number 231 is the most important digit or most significant digit. Compared to the other two digits, the leading 2 determines the greatest part of the number’s numerical value, as it represents the hundreds in the number. Take, for instance, the […]

Read More →

Find Factors of a Number – JavaScript Program. 💡 What are the Factors of any number? Factors of a number (n) will be those numbers that exactly divide it and give a remainder as 0. This means that the two whole numbers whose product is given number (n) are the factors of that number. 💡 […]

Read More →

LeetCode – Game of Life Problem | Solution with JavaScript Link – https://leetcode.com/problems/game-of-life/ Problem Statement – According to Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.” The board is made up of a m x n grid of cells, where each cell has […]

Read More →

Fibonacci series in javascript with Four different ways The Fibonacci Sequence is the series of numbers: The next number is found by adding up the two numbers before it: the 3 is found by adding the two numbers before it (1+2), the 5 is found by adding the two numbers before it (2+3), the 13 […]

Read More →

JavaScript Console Input Output Question and Solutions 💡What is the output of the below program? 💡 What is the output of the below program? Explanation – Because, We have a return statement inside inner function Two, not from the Main function, hello, means the main function hello is not returning anything.To correct this we need […]

Read More →
coin change problem

LeetCode – Coin Change Problem Problem LeetCode Link – https://leetcode.com/problems/coin-change/ You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the […]

Read More →

HackerRank Dictionaries and Maps Problem Problem: https://www.hackerrank.com/challenges/30-dictionaries-and-maps/problem TaskGiven n names and phone numbers, assemble a phone book that maps friends’ names to their respective phone numbers. You will then be given an unknown number of names to query your phone book for. For each name queried, print the associated entry from your phone book on a new […]

Read More →

React Redux Unit Testing 💡 To Test Redux, First, we have to mock the store. And to mock store, we will use a package named ‘redux-mock-store’. You can find the package on this link:https://www.npmjs.com/package/redux-mock-store 💡 Let’s configure mock store – 💡 If you have thunk middleware then We have to pass middleware into our store […]

Read More →
micro frontends

Micro frontends with Module Federation 💡 What are Micro Frontends? Micro front-end extends the concepts of microservices to the frontend world. Building a feature-rich, potent browser application, often known as a single-page app, that rests on top of a microservice architecture is now popular.Using Micro Frontends, you can think of a website or web app […]

Read More →