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 →

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 Console Interview Questions Write a program that can produce the same result by below two ways. Shift all Negative numbers of the array at starting and positive numbers after that in the array. Example : var x =[15,-4, 10, 12, -12, 10, -11, 23, 8372]; output should be :output is > [-11, -12, -4, […]

Read More →