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 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 →

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 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 →

Canvas Interview Questions and Answer What is Context in Canvas? Canvas in a HTML 5 element that is used to draw graphics and different types of shapes by using JavaScript. Context is the reference or object of Canvas element that provides methods and properties for drawing on the canvas. We use getContext() method to get […]

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 →

JavaScript Increment & Decrement Operator — — -I am sure that you all will be confused on above questions and it’s output… Confusion !!!!! Let’s explain it in a simple way. You probably learned that x++ is the same as x = x+1. Well, that’s not the whole story. x = x++ and simple x++ both […]

Read More →