I have a problem running the tests for this project. The problem is that the tests that are running are for the survey form project. I am using the CodePen code that the technical documentation page suggests. Here is the line statement from the objectives:
" You can build your project by forking [this CodePen pen] (http://codepen.io/freeCodeCamp/pen/MJjpwO)". I also have the cdn for FCC testable projects posted in my .
I populate the pen with my code from Brackets and I pass 2 tests. When I checked the tests that were being run I see the tests are for the survey form project. Let me know if you have an idea of what’s going here, please.
Your code so far
// the global Array
var s = [23, 65, 98, 5];
var s = [23, 65, 98, 5];
Array.prototype.myFilter = function(callback){
var newArray = [];
// Add your code below this line
this.forEach(function(x) {
if (callback(x) == true) {
newArray.push(x);
}
})
// Add your code above this line
return newArray;
};
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.52
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype