As JS programmer, We have observed this problem several time, where we need to remove specific item from array. Lets take an example let numArray = [58,38,3,2,12,56,7]; We want to remove number 2 from numArray, There are multiple way to achieve this Use Array.prototype.filter() This function will return new array…