Monty hall problem

Monty Hall Problem

  The Monty Hall Problem is a probability puzzle named after the host of the television game show “Let’s Make a Deal,” Monty Hall. The problem can be stated as follows:   The question is: What should you do to maximize your chances of winning the car? Should you stick with your initial choice, switch,…

Read More

JavaScript map method

Lets see how javascript map method works using some examples, some real world problem, Interview question and lastly there is a task for you 🙂 This is an array method which iterate over the array, map values and then return a new array.   Let’s see the syntax of same Array.map(callbackFunction(currentValue, [index], [arr]); Let’s see…

Read More